Add relations to notes/tasks list view (#6971)
<img width="664" alt="Screenshot 2024-09-10 at 17 00 11" src="https://github.com/user-attachments/assets/37132805-ff67-4d28-b664-b03da680e166"> --------- Co-authored-by: Lucas Bordeau <bordeau.lucas@gmail.com>
This commit is contained in:
@ -16,14 +16,6 @@ export const getLabelIdentifierFieldValue = (
|
||||
return `${record.name?.firstName ?? ''} ${record.name?.lastName ?? ''}`;
|
||||
}
|
||||
|
||||
if (objectNameSingular === CoreObjectNameSingular.NoteTarget) {
|
||||
return record.note?.title ?? '';
|
||||
}
|
||||
|
||||
if (objectNameSingular === CoreObjectNameSingular.TaskTarget) {
|
||||
return record.task?.title ?? '';
|
||||
}
|
||||
|
||||
if (isDefined(labelIdentifierFieldMetadataItem?.name)) {
|
||||
return String(record[labelIdentifierFieldMetadataItem.name]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user