From 1b5b07a02023177f2f49b3f5d89410c2dc5c07a3 Mon Sep 17 00:00:00 2001 From: jonaswinkler Date: Thu, 3 Dec 2020 18:37:25 +0100 Subject: [PATCH] bugfix --- src-ui/src/app/components/app-frame/app-frame.component.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src-ui/src/app/components/app-frame/app-frame.component.ts b/src-ui/src/app/components/app-frame/app-frame.component.ts index c1f5e9479..34e804db4 100644 --- a/src-ui/src/app/components/app-frame/app-frame.component.ts +++ b/src-ui/src/app/components/app-frame/app-frame.component.ts @@ -90,7 +90,9 @@ export class AppFrameComponent implements OnInit, OnDestroy { } ngOnDestroy() { - this.openDocumentsSubscription.unsubscribe() + if (this.openDocumentsSubscription) { + this.openDocumentsSubscription.unsubscribe() + } } }