Calendar: More sidebox owner fixes

- another instance of remote class causing problems
- remove duplicates to avoid warning message
This commit is contained in:
nathan 2023-04-28 11:27:26 -06:00
parent 84dd9284e2
commit 8e9071acc8
3 changed files with 5 additions and 4 deletions

View File

@ -267,7 +267,7 @@ export function cleanSelectOptions(options : SelectOption[] | string[] | object)
{ {
fixed_options.push(...cleanSelectOptions(option.label)); fixed_options.push(...cleanSelectOptions(option.label));
} }
else else if(fixed_options.findIndex(o => o.value == option.value) == -1)
{ {
fixed_options.push(option); fixed_options.push(option);
} }

View File

@ -542,6 +542,7 @@ export const Et2WithSearchMixin = <T extends Constructor<LitElement>>(superclass
if(options.findIndex(o => o.value == remote.value) != -1) if(options.findIndex(o => o.value == remote.value) != -1)
{ {
this._selected_remote.splice(remote_index, 1); this._selected_remote.splice(remote_index, 1);
this.querySelector('[value="' + remote.value + '"]')?.classList.remove("remote");
} }
} }
} }

View File

@ -3779,7 +3779,7 @@ export class CalendarApp extends EgwApp
for(const id of Object.keys(event.participants)) for(const id of Object.keys(event.participants))
{ {
if(parseInt(id) >= 0) if(parseInt(id) >= 0 || isNaN(parseInt(id)))
{ {
continue; continue;
} }