mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-21 16:26:43 +00:00
Don't send double card updated event when rendering the card (#25883)
This commit is contained in:
parent
73cd1e8e9d
commit
45e66d8b6e
@ -224,7 +224,9 @@ export class HuiCard extends ReactiveElement {
|
||||
this._element.preview = this.preview;
|
||||
// For backwards compatibility
|
||||
(this._element as any).editMode = this.preview;
|
||||
fireEvent(this, "card-updated");
|
||||
if (this.hasUpdated) {
|
||||
fireEvent(this, "card-updated");
|
||||
}
|
||||
} catch (e: any) {
|
||||
// eslint-disable-next-line no-console
|
||||
console.error(this.config?.type, e);
|
||||
|
Loading…
x
Reference in New Issue
Block a user