Skip to content

Commit ab0a9f2

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

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

html/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ function hideAllResultsTabObjects () {
213213
function fillVersionsElement (input, element) {
214214
$(element).empty()
215215
$('<colgroup><col><col></colgroup><thead><tr><th scope="col" data-label="Component">Component</th>' +
216-
'<th scope="col" data-label="Version">Version</th></tr></thead><tbody>').appendTo($(element))
216+
'<th scope="col" data-label="Version">Version</th></tr></thead><tbody>').appendTo($(element))
217217
for (const key in input) {
218218
$('<tr><td data-label="Component"><b>' + key + '</b></td><td data-label="Version">' + input[key] + '</td></tr>').appendTo($(element))
219219
}
@@ -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)