Skip to content

Commit db0b4f8

Browse files
committed
Fix error
1 parent 6f28420 commit db0b4f8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/vuex-orm-apollo.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,8 +224,8 @@ export default class VuexORMApollo {
224224
// Send GraphQL Mutation
225225
const newData = await this.apolloRequest(query, variables, true);
226226

227-
// TODO: What if there is no id?
228-
return this.updateData(newData, dispatch, id);
227+
if (id) return this.updateData(newData, dispatch, id);
228+
return null;
229229
}
230230
}
231231

0 commit comments

Comments
 (0)