mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-21 08:16:36 +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;
|
this._element.preview = this.preview;
|
||||||
// For backwards compatibility
|
// For backwards compatibility
|
||||||
(this._element as any).editMode = this.preview;
|
(this._element as any).editMode = this.preview;
|
||||||
|
if (this.hasUpdated) {
|
||||||
fireEvent(this, "card-updated");
|
fireEvent(this, "card-updated");
|
||||||
|
}
|
||||||
} catch (e: any) {
|
} catch (e: any) {
|
||||||
// eslint-disable-next-line no-console
|
// eslint-disable-next-line no-console
|
||||||
console.error(this.config?.type, e);
|
console.error(this.config?.type, e);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user