cleanup + fixes

This commit is contained in:
Jokob-sk
2024-03-10 22:48:49 +11:00
parent bcf4144364
commit 7cd76178b1

View File

@@ -119,6 +119,8 @@ function initSettingDropdown(settingKey, targetLocation)
setVal = getSetting(settingKey) setVal = getSetting(settingKey)
console.log(setVal);
// check if the result is a SQL query // check if the result is a SQL query
if(isSQLQuery(setVal)) 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 } else // this should be already an array, e.g. from a setting or pre-defined
{ {
options = createArray(setVal); options = createArray(setVal);
values = createArray(set['Value']); values = createArray(setVal);
options.forEach(option => { options.forEach(option => {