Fix 2 small bugs following tasks migration (#6483)

This PR fixes two bugs:
- A broken link to the task page that had been left on the mobile
version
- On Kanban cards, the badge for notes/tasks wasn't properly displayed
because the title wasn't loaded from the backend
This commit is contained in:
Félix Malfait
2024-08-01 11:28:09 +02:00
committed by GitHub
parent 8c7ae9e07f
commit 3a1576bc22
2 changed files with 16 additions and 26 deletions

View File

@ -44,6 +44,18 @@ export const useRecordBoardRecordGqlFields = ({
),
...(hasPositionField(objectMetadataItem) ? { position: true } : undefined),
...identifierQueryFields,
noteTargets: {
note: {
id: true,
title: true,
},
},
taskTargets: {
task: {
id: true,
title: true,
},
},
};
if (isDefined(kanbanFieldMetadataName)) {