Fix duplicated items in strategy editor (#25600)

This commit is contained in:
Paul Bottein
2025-05-26 19:21:44 +02:00
committed by GitHub
parent 629eb29d42
commit 3532cfa974

View File

@@ -262,7 +262,7 @@ export class HaItemDisplayEditor extends LitElement {
];
}
return items.sort((a, b) =>
return visibleItems.sort((a, b) =>
a.disableSorting && !b.disableSorting ? -1 : compare(a.value, b.value)
);
}