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)