From b69c5e7cbfbff4e807aef5324f7eccaa01a4a389 Mon Sep 17 00:00:00 2001 From: nathan Date: Fri, 13 May 2022 09:07:47 -0600 Subject: [PATCH] Fix IDE errors without changing internal data type --- api/js/etemplate/Et2Select/Et2SelectReadonly.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/js/etemplate/Et2Select/Et2SelectReadonly.ts b/api/js/etemplate/Et2Select/Et2SelectReadonly.ts index 1ee802ddd2..74873bcf82 100644 --- a/api/js/etemplate/Et2Select/Et2SelectReadonly.ts +++ b/api/js/etemplate/Et2Select/Et2SelectReadonly.ts @@ -52,7 +52,7 @@ li { } private __select_options : SelectOption[]; - private __value : string|string[]; + private __value : string[]; constructor() { @@ -99,7 +99,7 @@ li { this.value = value; } - set value(new_value) + set value(new_value : string | string[]) { // Split anything that is still a CSV if(typeof new_value == "string" && new_value.indexOf(",") > 0)