Make sure we don't reevaluate the value when there's already a value set (eg. given object of options with value attribute set)

This commit is contained in:
Hadi Nategh 2022-07-07 11:54:24 +02:00
parent aab768d87f
commit 7a4193073b

View File

@ -226,7 +226,7 @@ export function cleanSelectOptions(options : SelectOption[] | string[] | object)
{
option = {label: option};
}
option.value = key.trim(); // link_search prefixes keys with one space
option.value = option.value??key.trim(); // link_search prefixes keys with one space
fixed_options.push(option);
}
}