mirror of
https://github.com/lingble/twenty.git
synced 2026-03-20 04:04:04 +00:00
Fix sidebar re-ordering (#8124)
Followup of https://github.com/twentyhq/twenty/pull/7940#issuecomment-2434447952
This commit is contained in:
@@ -43,8 +43,7 @@ export const NavigationDrawerItemForObjectMetadataItem = ({
|
||||
const shouldSubItemsBeDisplayed = isActive && objectMetadataViews.length > 1;
|
||||
|
||||
const sortedObjectMetadataViews = [...objectMetadataViews].sort(
|
||||
(viewA, viewB) =>
|
||||
viewA.key === 'INDEX' ? -1 : viewA.position - viewB.position,
|
||||
(viewA, viewB) => viewA.position - viewB.position,
|
||||
);
|
||||
|
||||
const selectedSubItemIndex = sortedObjectMetadataViews.findIndex(
|
||||
|
||||
Reference in New Issue
Block a user