Skip to content

A community-supported supercharged document management system: scan, index and archive all your documents

bugfix

jonaswinkler1b5b07a02023
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()
+ }
}
}