Skip to content

Commit 41b479b

Browse files
committed
fix: don't overwrite custom handleEvents handlers #472
1 parent 8e5af2d commit 41b479b

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
@@ -64,7 +64,7 @@ export default function prepareMakeServicePlugin(
6464
} = options
6565

6666
events.forEach(eventName => {
67-
if (options.handleEvents[eventName])
67+
if (!options.handleEvents[eventName])
6868
options.handleEvents[eventName] = () => options.enableEvents || true
6969
})
7070

0 commit comments

Comments
 (0)