mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-05-12 17:04:46 +00:00
add safety checks for folders
This commit is contained in:
parent
29f4b64ccc
commit
eb40e523a8
@ -84,12 +84,15 @@ export class InfoDrawerComponent implements OnChanges {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private hasAspectNames(entry: MinimalNodeEntryEntity) {
|
private hasAspectNames(entry: MinimalNodeEntryEntity): boolean {
|
||||||
return entry.aspectNames && entry.aspectNames.includes('exif:exif');
|
return entry.aspectNames && entry.aspectNames.includes('exif:exif');
|
||||||
}
|
}
|
||||||
|
|
||||||
private isTypeImage(entry) {
|
private isTypeImage(entry: MinimalNodeEntryEntity): boolean {
|
||||||
return entry.content.mimeType.includes('image/');
|
if (entry && entry.content && entry.content.mimeType) {
|
||||||
|
return entry.content.mimeType.includes('image/');
|
||||||
|
}
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
private loadNodeInfo(nodeId: string) {
|
private loadNodeInfo(nodeId: string) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user