mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-23 01:06:35 +00:00
Correctly replace rebuilt badges in view (#7487)
This commit is contained in:
parent
733ce3b6b8
commit
61e17395c9
@ -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