Skip to content

Commit e0b108a

Browse files
Merge pull request #492 from fratzinger/patch-10
fix: addItems calls new Model calls addItem
2 parents 9471ced + de3c11e commit e0b108a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/service-module/service-module.mutations.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export default function makeServiceMutations() {
3333
}
3434

3535
if (Model && !(item instanceof BaseModel) && !(item instanceof Model)) {
36-
item = new Model(item)
36+
item = new Model(item, { commit: false })
3737
}
3838

3939
if (isTemp) {

0 commit comments

Comments
 (0)