Fix select account readonly did not properly show names with CSV

This commit is contained in:
nathan 2022-09-07 15:12:06 -06:00
parent 088280ceb5
commit a10938ab2b

View File

@ -220,17 +220,12 @@ export class Et2SelectAccountReadonly extends Et2SelectReadonly
{
set value(new_value)
{
super.value = new_value;
if(!new_value)
{
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)
for(let id of this.value)
{
let account_name = null;
let option = <SelectOption>{value: id, label: id + " ..."};
@ -249,7 +244,6 @@ export class Et2SelectAccountReadonly extends Et2SelectReadonly
});
}
}
super.value = new_value;
}
get value()