1
0
mirror of https://github.com/home-assistant/frontend.git synced 2025-12-19 18:28:42 +00:00

Fix duplicated items in strategy editor (#25600)

This commit is contained in:
Paul Bottein
2025-05-26 19:21:44 +02:00
committed by Bram Kragten
parent de56c3376e
commit 1611423ca5

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)
);
}