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(","); }