Show page - disable click for workspace member relation (#3464)
* [Draft] Add disable logic + failing test * Fix test * Remove hook --------- Co-authored-by: Thomas Trompette <thomast@twenty.com> Co-authored-by: Charles Bochet <charles@twenty.com>
This commit is contained in:
@ -56,7 +56,12 @@ export const getObjectRecordIdentifier = ({
|
||||
objectMetadataItem,
|
||||
});
|
||||
|
||||
const linkToShowPage = `${basePathToShowPage}${record.id}`;
|
||||
const isWorkspaceMemberObjectMetadata =
|
||||
objectMetadataItem.nameSingular === CoreObjectNameSingular.WorkspaceMember;
|
||||
|
||||
const linkToShowPage = isWorkspaceMemberObjectMetadata
|
||||
? ''
|
||||
: `${basePathToShowPage}${record.id}`;
|
||||
|
||||
return {
|
||||
id: record.id,
|
||||
|
||||
Reference in New Issue
Block a user