mirror of
https://github.com/home-assistant/frontend.git
synced 2025-08-01 13:37:47 +00:00
Correctly replace rebuilt badges in view (#7487)
This commit is contained in:
parent
e4e6edd573
commit
ce414a5ca9
@ -224,7 +224,7 @@ export class HUIView extends UpdatingElement {
|
||||
badgeElToReplace
|
||||
);
|
||||
}
|
||||
this._badges = this._cards!.map((curBadgeEl) =>
|
||||
this._badges = this._badges!.map((curBadgeEl) =>
|
||||
curBadgeEl === badgeElToReplace ? newBadgeEl : curBadgeEl
|
||||
);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user