From ce34b5eaf97ebf602e05f2e98ea27ad3567de136 Mon Sep 17 00:00:00 2001 From: nathan Date: Thu, 18 Jan 2024 12:48:38 -0700 Subject: [PATCH] Api: Fix r/o select did not show correctly if value had a leading "," --- api/js/etemplate/Et2Select/Select/Et2SelectReadonly.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/js/etemplate/Et2Select/Select/Et2SelectReadonly.ts b/api/js/etemplate/Et2Select/Select/Et2SelectReadonly.ts index 3c49b1b3b4..7961eabc48 100644 --- a/api/js/etemplate/Et2Select/Select/Et2SelectReadonly.ts +++ b/api/js/etemplate/Et2Select/Select/Et2SelectReadonly.ts @@ -152,7 +152,7 @@ li { set value(new_value : string | string[]) { // 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(","); }