Fix some select options were not being cleaned

Integer values provided from server were not being converted to strings, breaking value handling & matching
This commit is contained in:
nathan 2022-12-06 09:13:04 -07:00
parent dd9a0dd788
commit 3971abc54b

View File

@ -120,6 +120,10 @@ export function find_select_options(widget, attr_options?, options : SelectOptio
content_options = [...new Map([...cleanSelectOptions(options), ...cleanSelectOptions(content_options || [])].map(item => content_options = [...new Map([...cleanSelectOptions(options), ...cleanSelectOptions(content_options || [])].map(item =>
[item.value, item])).values()]; [item.value, item])).values()];
} }
if(content_options)
{
content_options = cleanSelectOptions(content_options);
}
} }
// Check whether the options entry was found, if not read it from the // Check whether the options entry was found, if not read it from the