Skip to content

Commit 0c5f119

Browse files
Merge pull request #392 from headghost/patch-1
Fix equality comparison typo
2 parents 8b0db42 + c7c74fb commit 0c5f119

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/service-module/make-service-plugin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ export default function prepareMakeServicePlugin(
111111
models: globalModels
112112
})
113113
if (affectsStore) {
114-
eventName = 'removed'
114+
eventName === 'removed'
115115
? store.commit(`${options.namespace}/removeItem`, item)
116116
: store.dispatch(`${options.namespace}/${mutationName}`, item)
117117
}

0 commit comments

Comments
 (0)