浏览代码

HUE-9289 [assist] Fix HDFS file preview in the left assist

Johan Ahlen 5 年之前
父节点
当前提交
531f000ef7
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      desktop/core/src/desktop/js/ko/components/assist/assistStorageEntry.js

+ 1 - 1
desktop/core/src/desktop/js/ko/components/assist/assistStorageEntry.js

@@ -229,7 +229,7 @@ class AssistStorageEntry {
         const rootParts = entry.definition.name.split('/').filter(Boolean);
         rootParts.reverse();
         parts = parts.concat(rootParts);
-      } else {
+      } else if (entry.definition.name) {
         parts.push(entry.definition.name);
       }
       entry = entry.parent;