feat(editor): Split Tools and Models into sub-sections (#10159)

This commit is contained in:
oleg
2024-07-23 16:40:28 +02:00
committed by GitHub
parent 95b85dd5c1
commit 3846eb967a
28 changed files with 71 additions and 17 deletions

View File

@@ -157,6 +157,12 @@ export function groupItemsInSections(
})
.filter((section) => section.type !== 'section' || section.children.length > 0);
result.sort((a, b) => {
if (a.key.toLowerCase().includes('recommended')) return -1;
if (b.key.toLowerCase().includes('recommended')) return 1;
return 0;
});
if (result.length <= 1) {
return items;
}