fix: show app first in add item modal (#6087)

This commit is contained in:
Thomas authored and GitHub committed 2026-06-26 14:42:13 +02:00
1 parent a2bb53a8b8
commit 915c8a3501
1 file changed
+6 -1
@@ -41,7 +41,12 @@ export const ItemSelectModal = createModal<void>(({ actions }) => {
name: t(`widget.${kind}.name`),
description: t(`widget.${kind}.description`),
}))
.sort((itemA, itemB) => itemA.name.localeCompare(itemB.name)),
.sort((itemA, itemB) => {
if (itemA.kind === "app") return -1;
if (itemB.kind === "app") return 1;
return itemA.name.localeCompare(itemB.name);
}),
[t],
);