From ab0a9f2c0e98c2bd973671ab1b9da11022bdaf77 Mon Sep 17 00:00:00 2001 From: David Elie-Dit-Cosaque Date: Thu, 7 Nov 2024 15:07:36 -0600 Subject: [PATCH] Infer name/namespace only if both name and namespace are not empty at the same level --- html/index.js | 4 ++-- html/results.html | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/html/index.js b/html/index.js index 82fed25..aa8bb18 100644 --- a/html/index.js +++ b/html/index.js @@ -213,7 +213,7 @@ function hideAllResultsTabObjects () { function fillVersionsElement (input, element) { $(element).empty() $('Component' + - 'Version').appendTo($(element)) + 'Version').appendTo($(element)) for (const key in input) { $('' + key + '' + input[key] + '').appendTo($(element)) } @@ -925,7 +925,7 @@ function formatForFastTreeview (parentKey, data, arr) { const result = formatForFastTreeview(objectID, data[key], arr) const childName = result.name const childNamespace = result.namespace - if (childName !== '') { + if (childName !== '' && childNamespace !== '') { objectName = childName objectNamespace = childNamespace } diff --git a/html/results.html b/html/results.html index ee32f15..7347448 100644 --- a/html/results.html +++ b/html/results.html @@ -62,7 +62,7 @@ - +