Skip to content

Commit e5c021c

Browse files
committed
Also insert data from mutations
1 parent 579f2ee commit e5c021c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/vuex-orm-apollo.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,8 +213,7 @@ export default class VuexORMApollo {
213213
// Send GraphQL Mutation
214214
const newData = await this.apolloRequest(model, query, variables, true);
215215

216-
if (id) return VuexORMApollo.updateData(newData, dispatch, id);
217-
return null;
216+
return this.insertData(newData, dispatch);
218217
}
219218
}
220219

0 commit comments

Comments
 (0)