Make sure values are strings, otherwise they might not match comparison

Should fix tracker list "Created by" filter losing display when you select a search result
This commit is contained in:
nathan 2023-01-25 13:43:35 -07:00
parent 71f4a93d56
commit 4b8b454566
2 changed files with 2 additions and 2 deletions

View File

@ -241,7 +241,7 @@ export function cleanSelectOptions(options : SelectOption[] | string[] | object)
{
option = {label: key + ""};
}
option.value = option.value ?? key.trim(); // link_search prefixes keys with one space
option.value = "" + (option.value ?? key.trim()); // link_search prefixes keys with one space
fixed_options.push(option);
}
}

View File

@ -85,7 +85,7 @@ export const SelectAccountMixin = <T extends Constructor<LitElement>>(superclass
}
let account_name = null;
let option = <SelectOption>{value: id, label: id + " ..."};
let option = <SelectOption>{value: "" + id, label: id + " ..."};
this.account_options.push(option);
if(this.value && (account_name = this.egw().link_title('api-accounts', id, false)))
{