mirror of
https://github.com/dbeaver/cloudbeaver.git
synced 2026-09-24 16:04:36 +08:00
fix(core-executor): handlers removement
This commit is contained in:
@@ -47,7 +47,7 @@ export class Executor<T> implements IExecutor<T> {
|
||||
}
|
||||
|
||||
removeHandler(handler: IExecutorHandler<T>) {
|
||||
this.handlers = this.handlers.filter(h => h === handler);
|
||||
this.handlers = this.handlers.filter(h => h !== handler);
|
||||
}
|
||||
|
||||
addPostHandler(handler: IExecutorHandler<T>) {
|
||||
@@ -56,6 +56,6 @@ export class Executor<T> implements IExecutor<T> {
|
||||
}
|
||||
|
||||
removePostHandler(handler: IExecutorHandler<T>) {
|
||||
this.postHandlers = this.postHandlers.filter(h => h === handler);
|
||||
this.postHandlers = this.postHandlers.filter(h => h !== handler);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user