mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-26 04:41:41 +02:00
Calendar: More sidebox owner fixes
- another instance of remote class causing problems - remove duplicates to avoid warning message
This commit is contained in:
parent
84dd9284e2
commit
8e9071acc8
@ -267,7 +267,7 @@ export function cleanSelectOptions(options : SelectOption[] | string[] | object)
|
||||
{
|
||||
fixed_options.push(...cleanSelectOptions(option.label));
|
||||
}
|
||||
else
|
||||
else if(fixed_options.findIndex(o => o.value == option.value) == -1)
|
||||
{
|
||||
fixed_options.push(option);
|
||||
}
|
||||
|
@ -542,6 +542,7 @@ export const Et2WithSearchMixin = <T extends Constructor<LitElement>>(superclass
|
||||
if(options.findIndex(o => o.value == remote.value) != -1)
|
||||
{
|
||||
this._selected_remote.splice(remote_index, 1);
|
||||
this.querySelector('[value="' + remote.value + '"]')?.classList.remove("remote");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -3779,7 +3779,7 @@ export class CalendarApp extends EgwApp
|
||||
|
||||
for(const id of Object.keys(event.participants))
|
||||
{
|
||||
if(parseInt(id) >= 0)
|
||||
if(parseInt(id) >= 0 || isNaN(parseInt(id)))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user