Skip to content

Commit c7c74fb

Browse files
authored
Fix equality comparison typo
1 parent 8b0db42 commit c7c74fb

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)