mirror of
https://github.com/standardnotes/app.git
synced 2026-01-16 23:01:30 +00:00
fix: don't use lodash pull
This commit is contained in:
parent
34505deddc
commit
3b3c2d6fe4
1 changed files with 2 additions and 2 deletions
|
|
@ -11,7 +11,6 @@ import {
|
|||
ThemeManager
|
||||
} from '@/services';
|
||||
import { AppState } from '@/ui_models/app_state';
|
||||
import { pull } from 'lodash';
|
||||
|
||||
type AppManagerChangeCallback = () => void
|
||||
|
||||
|
|
@ -125,7 +124,8 @@ export class ApplicationGroup {
|
|||
}
|
||||
|
||||
return () => {
|
||||
pull(this.changeObservers, callback)
|
||||
const indexOfObserver = this.changeObservers.indexOf(callback);
|
||||
this.changeObservers.splice(indexOfObserver, 1);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue