From d398bd9bd57fc72aac17bff98518fa129825b7dc Mon Sep 17 00:00:00 2001 From: Piotr Pekala Date: Mon, 1 Jul 2019 04:54:23 -0700 Subject: [PATCH] bug fixed --- .../draggable-selection/draggable-selection.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/cartography/components/draggable-selection/draggable-selection.component.ts b/src/app/cartography/components/draggable-selection/draggable-selection.component.ts index 5c284725..858a1c8c 100644 --- a/src/app/cartography/components/draggable-selection/draggable-selection.component.ts +++ b/src/app/cartography/components/draggable-selection/draggable-selection.component.ts @@ -50,7 +50,7 @@ export class DraggableSelectionComponent implements OnInit, OnDestroy { ngOnInit() { const svg = select(this.svg); - this.mapSettingsService.isMapLocked.subscribe((value) => { + this.mapSettingsSubscription = this.mapSettingsService.isMapLocked.subscribe((value) => { this.isMapLocked = value; });