diff --git a/web/src/elements/utils/eventEmitter.ts b/web/src/elements/utils/eventEmitter.ts index 9a4d421ef..54b472825 100644 --- a/web/src/elements/utils/eventEmitter.ts +++ b/web/src/elements/utils/eventEmitter.ts @@ -12,7 +12,7 @@ export function CustomEmitterElement>(supercla // eslint-disable-next-line @typescript-eslint/no-explicit-any dispatchCustomEvent(eventName: string, detail: any = {}, options = {}) { const fullDetail = - typeof detail === "object" + typeof detail === "object" && !Array.isArray(detail) ? { target: this, ...detail,