Skip to content

Commit 7ebebdf

Browse files
committed
Infer name/namespace only if both name and namespace are not empty at the same level
1 parent 6f0ce29 commit 7ebebdf

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

html/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -925,7 +925,7 @@ function formatForFastTreeview (parentKey, data, arr) {
925925
const result = formatForFastTreeview(objectID, data[key], arr)
926926
const childName = result.name
927927
const childNamespace = result.namespace
928-
if (childName !== '') {
928+
if (childName !== '' && childNamespace!=='') {
929929
objectName = childName
930930
objectNamespace = childNamespace
931931
}

0 commit comments

Comments
 (0)