Api: Fix r/o select did not show correctly if value had a leading ","

This commit is contained in:
nathan 2024-01-18 12:48:38 -07:00
parent f457af5e38
commit ce34b5eaf9

View File

@ -152,7 +152,7 @@ li {
set value(new_value : string | string[]) set value(new_value : string | string[])
{ {
// Split anything that is still a CSV // Split anything that is still a CSV
if(typeof new_value == "string" && new_value.indexOf(",") > 0) if(typeof new_value == "string" && new_value.indexOf(",") != -1)
{ {
new_value = new_value.split(","); new_value = new_value.split(",");
} }