Skip to content

Commit 3e56543

Browse files
author
tvillaren
committed
Making sure allDirty & allNew return distinct results
+ Release v1.2.1
1 parent 1062398 commit 3e56543

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

dist/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@vuex-orm/plugin-change-flags",
3-
"version": "1.2.0",
3+
"version": "1.2.1",
44
"description": "Vuex ORM plugin adding IsDirty / IsNew flags to model entities",
55
"author": "Thomas Villaren",
66
"main": "dist/index.js",

src/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ export default {
129129
.get();
130130
result = result.concat(elts);
131131
});
132-
return result;
132+
return [...new Set(result)];
133133
}
134134
};
135135
};
@@ -160,7 +160,7 @@ export default {
160160
.get();
161161
result = result.concat(elts);
162162
});
163-
return result;
163+
return [...new Set(result)];
164164
}
165165
};
166166
};

0 commit comments

Comments
 (0)