mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
fix no content node display (#3351)
This commit is contained in:
committed by
Denys Vuika
parent
8fae47639c
commit
e8cf6f6f38
@@ -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);
|
||||
|
Reference in New Issue
Block a user