fix TypeError with numbers not iterable

also problem with strings - thought no error - as they are iterated letter-wise, which is not what we want here
This commit is contained in:
ralf 2022-02-16 10:35:09 +02:00
parent ddaa16dcd5
commit f29da5e613

View File

@ -199,7 +199,11 @@ export class Et2SelectAccountReadonly extends Et2SelectReadonly
super.value = new_value;
return;
}
// fix scalar (number or string) values
if (typeof new_value !== 'object')
{
new_value = [new_value];
}
for(let id of new_value)
{
let account_name = null;