From 3b3c2d6fe44f5026bac4a4deead3047c1d0dc7f4 Mon Sep 17 00:00:00 2001 From: Radek Czemerys Date: Mon, 29 Jun 2020 11:35:40 +0200 Subject: [PATCH] fix: don't use lodash pull --- app/assets/javascripts/ui_models/application_group.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/assets/javascripts/ui_models/application_group.ts b/app/assets/javascripts/ui_models/application_group.ts index 582565820..adb25d3ef 100644 --- a/app/assets/javascripts/ui_models/application_group.ts +++ b/app/assets/javascripts/ui_models/application_group.ts @@ -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); } }