diff --git a/webapp/packages/core-executor/src/Executor.ts b/webapp/packages/core-executor/src/Executor.ts index 3e37bea55c..ade38ab0f0 100644 --- a/webapp/packages/core-executor/src/Executor.ts +++ b/webapp/packages/core-executor/src/Executor.ts @@ -47,7 +47,7 @@ export class Executor implements IExecutor { } removeHandler(handler: IExecutorHandler) { - this.handlers = this.handlers.filter(h => h === handler); + this.handlers = this.handlers.filter(h => h !== handler); } addPostHandler(handler: IExecutorHandler) { @@ -56,6 +56,6 @@ export class Executor implements IExecutor { } removePostHandler(handler: IExecutorHandler) { - this.postHandlers = this.postHandlers.filter(h => h === handler); + this.postHandlers = this.postHandlers.filter(h => h !== handler); } }