mirror of
https://github.com/lingble/twenty.git
synced 2025-10-29 20:02:29 +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