From 7cd76178b1124997fd43f78605b09d9ddd0776d0 Mon Sep 17 00:00:00 2001 From: Jokob-sk Date: Sun, 10 Mar 2024 22:48:49 +1100 Subject: [PATCH] cleanup + fixes --- front/js/ui_components.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/front/js/ui_components.js b/front/js/ui_components.js index f896a9f0..c1b15716 100755 --- a/front/js/ui_components.js +++ b/front/js/ui_components.js @@ -119,6 +119,8 @@ function initSettingDropdown(settingKey, targetLocation) setVal = getSetting(settingKey) + console.log(setVal); + // check if the result is a SQL query if(isSQLQuery(setVal)) { @@ -130,7 +132,7 @@ function initSettingDropdown(settingKey, targetLocation) } else // this should be already an array, e.g. from a setting or pre-defined { options = createArray(setVal); - values = createArray(set['Value']); + values = createArray(setVal); options.forEach(option => {