mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-19 07:16:39 +00:00
use lastChild
This commit is contained in:
parent
89f33a1730
commit
562d7a7cf4
@ -109,10 +109,8 @@ class EntityFilterBadge extends HTMLElement implements LovelaceBadge {
|
||||
return;
|
||||
}
|
||||
|
||||
let child = this.lastElementChild;
|
||||
while (child) {
|
||||
this.removeChild(child);
|
||||
child = this.lastElementChild;
|
||||
while (this.lastChild) {
|
||||
this.removeChild(this.lastChild);
|
||||
}
|
||||
|
||||
for (const element of this._elements) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user