From a186d6fae2f55d521c58348de102c56766fac632 Mon Sep 17 00:00:00 2001 From: jonaswinkler Date: Wed, 3 Feb 2021 15:22:20 +0100 Subject: [PATCH] bugfix --- .../components/document-detail/document-detail.component.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src-ui/src/app/components/document-detail/document-detail.component.ts b/src-ui/src/app/components/document-detail/document-detail.component.ts index a7cce715e..071c8e249 100644 --- a/src-ui/src/app/components/document-detail/document-detail.component.ts +++ b/src-ui/src/app/components/document-detail/document-detail.component.ts @@ -115,9 +115,13 @@ export class DocumentDetailComponent implements OnInit { this.document = doc this.documentsService.getMetadata(doc.id).subscribe(result => { this.metadata = result + }, error => { + this.metadata = null }) this.documentsService.getSuggestions(doc.id).subscribe(result => { this.suggestions = result + }, error => { + this.suggestions = null }) this.title = this.documentTitlePipe.transform(doc.title) this.documentForm.patchValue(doc)