Fix 3 bugs (#3391)

* Fix Favorites

* Fix opportunities
This commit is contained in:
Charles Bochet
2024-01-11 21:34:56 +01:00
committed by GitHub
parent 985c2f321e
commit 3ad032cdc1
6 changed files with 56 additions and 32 deletions

View File

@ -21,6 +21,7 @@ export const getObjectRecordIdentifier = ({
name: record?.company?.name,
avatarUrl: record.avatarUrl,
avatarType: 'rounded',
linkToShowPage: `/opportunities/${record.id}`,
};
}
@ -64,13 +65,13 @@ export const getObjectRecordIdentifier = ({
objectMetadataItem,
});
const linkToEntity = `${basePathToShowPage}${record.id}`;
const linkToShowPage = `${basePathToShowPage}${record.id}`;
return {
id: record.id,
name: labelIdentifierFieldValue,
avatarUrl,
avatarType,
linkToEntity,
linkToShowPage,
};
};