Fix left menu highlight (#9821)

Fix #9777

getAppPath doesn't return object/pet/ but actually object/pet so it
needed a small adjustment (pet - 1 = PE is included in PEople)
This commit is contained in:
Félix Malfait
2025-01-23 17:59:30 +01:00
committed by GitHub
parent bf564788c3
commit afa2282ea3

View File

@ -52,7 +52,7 @@ export const NavigationDrawerItemForObjectMetadataItem = ({
getAppPath(AppPath.RecordShowPage, {
objectNameSingular: objectMetadataItem.nameSingular,
objectRecordId: '',
}).slice(0, -1),
}) + '/',
);
const shouldSubItemsBeDisplayed = isActive && objectMetadataViews.length > 1;