fix null aspectNames in check for smart folder

This commit is contained in:
Eugenio Romano
2018-09-18 17:09:16 +01:00
parent a801f656a7
commit ec633f27d6
3 changed files with 8 additions and 5 deletions

View File

@@ -168,8 +168,8 @@ export class ShareDataTableAdapter implements DataTableAdapter {
}
isSmartFolder(node: any) {
return node.entry.aspectNames.indexOf('smf:customConfigSmartFolder') > -1 ||
(node.entry.aspectNames.indexOf('smf:systemConfigSmartFolder') > -1);
return node.entry.aspectNames && (node.entry.aspectNames.indexOf('smf:customConfigSmartFolder') > -1 ||
(node.entry.aspectNames.indexOf('smf:systemConfigSmartFolder') > -1));
}
private sortRows(rows: DataRow[], sorting: DataSorting) {