Skip to content

Commit ee633a7

Browse files
author
tvillaren
committed
Fixing issue following update of Vuex ORM to 0.31.6
Result is now handled in mutation instead of Query (see Vuex ORM commit 6e950180de68f2b9a54af18d779500393e69da45)
1 parent 09424ea commit ee633a7

File tree

4 files changed

+9
-14
lines changed

4 files changed

+9
-14
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-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
22
"name": "@vuex-orm/plugin-change-flags",
3-
"version": "1.1.0",
3+
"version": "1.1.1",
44
"description": "Vuex ORM plugin adding IsDirty / IsNew flags to model entities",
55
"author": "Thomas Villaren",
66
"main": "dist/index.js",
77
"devDependencies": {
88
"@babel/core": "^7.0.0-beta.53",
9-
"@vuex-orm/core": "^0.31.1",
9+
"@vuex-orm/core": "^0.31.6",
1010
"babel": "^6.23.0",
1111
"babel-cli": "^6.26.0",
1212
"babel-core": "^6.26.3",

src/index.js

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -173,9 +173,7 @@ export default {
173173
const entity = payload.entity;
174174
const result = payload.result;
175175

176-
const query = new Query(state, entity);
177-
178-
query.setResult(result).createNew();
176+
result.data = (new Query(state, entity)).createNew();
179177
};
180178

181179
Actions.createNew = function (context) {
@@ -211,10 +209,7 @@ export default {
211209
record[pluginOptions.isDirtyFlagName] = true;
212210

213211
const result = this.insert(record, {});
214-
215-
this.result.data = result[this.entity][0];
216-
217-
return this.result.data;
212+
return result[this.entity][0];
218213
};
219214
}
220215
};

0 commit comments

Comments
 (0)