mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-25 18:26:35 +00:00
Prevent identical double debug log downloads for integration (#14537)
fixes undefined
This commit is contained in:
parent
2ed8a4053b
commit
f18997c7c3
@ -548,6 +548,9 @@ export class HaIntegrationCard extends LitElement {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private async _handleDisableDebugLogging(ev: MouseEvent) {
|
private async _handleDisableDebugLogging(ev: MouseEvent) {
|
||||||
|
// Stop propagation since otherwise we end up here twice while we await the log level change
|
||||||
|
// and trigger two identical debug log downloads.
|
||||||
|
ev.stopPropagation();
|
||||||
const configEntry = ((ev.target as HTMLElement).closest("ha-card") as any)
|
const configEntry = ((ev.target as HTMLElement).closest("ha-card") as any)
|
||||||
.configEntry;
|
.configEntry;
|
||||||
const integration = configEntry.domain;
|
const integration = configEntry.domain;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user