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; });