Two subscriptions unsubscribe only inside the stopShifting handler, which fires on right-click (index.ts:740). The component calls this.onClose() immediately after subscribing, and has no ngOnDestroy. Close the dialog without right-clicking and both subscriptions outlive it, leaking on every reopen. If stopShifting emits before stopShiftingSub is assigned, line 67 throws on null.
Two subscriptions unsubscribe only inside the stopShifting handler, which fires on right-click (index.ts:740). The component calls this.onClose() immediately after subscribing, and has no ngOnDestroy. Close the dialog without right-clicking and both subscriptions outlive it, leaking on every reopen. If stopShifting emits before stopShiftingSub is assigned, line 67 throws on null.