mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 01:56:46 +00:00
feat(editor): Split Tools and Models into sub-sections (#10159)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user