diff --git a/packages/twenty-front/src/modules/object-metadata/components/NavigationDrawerItemForObjectMetadataItem.tsx b/packages/twenty-front/src/modules/object-metadata/components/NavigationDrawerItemForObjectMetadataItem.tsx index 8c7f1e3ceda2..e4602fa0c59f 100644 --- a/packages/twenty-front/src/modules/object-metadata/components/NavigationDrawerItemForObjectMetadataItem.tsx +++ b/packages/twenty-front/src/modules/object-metadata/components/NavigationDrawerItemForObjectMetadataItem.tsx @@ -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(