chore: remove lodash and unused deps (#932)

This commit is contained in:
Mo
2022-03-15 14:19:31 -05:00
committed by GitHub
parent bcfb22fef6
commit 91163f7925
86 changed files with 201 additions and 908 deletions

View File

@@ -14,8 +14,8 @@ import {
SmartView,
SNTag,
SystemViewId,
removeFromArray,
} from '@standardnotes/snjs';
import pull from 'lodash/pull';
import {
action,
computed,
@@ -415,7 +415,7 @@ export class AppState {
addObserver(callback: ObserverCallback) {
this.observers.push(callback);
return () => {
pull(this.observers, callback);
removeFromArray(this.observers, callback);
};
}