mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
fix null aspectNames in check for smart folder
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user