fix no content node display (#3351)

This commit is contained in:
Eugenio Romano
2018-05-21 16:44:16 +01:00
committed by Denys Vuika
parent 8fae47639c
commit e8cf6f6f38
2 changed files with 46 additions and 14 deletions

View File

@@ -334,7 +334,10 @@ export class ViewerComponent implements OnChanges, OnInit, OnDestroy {
}
private setUpNodeFile(data: MinimalNodeEntryEntity) {
this.mimeType = data.content.mimeType;
if (data.content) {
this.mimeType = data.content.mimeType;
}
this.displayName = data.name;
this.urlFileContent = this.apiService.contentApi.getContentUrl(data.id);