Update icon and fix relation creation (#5742)

A minor fix (update icon and fix relation creation when creating a
relation in right drawer)
This commit is contained in:
Félix Malfait 2024-06-05 11:07:48 +02:00 committed by GitHub
parent 6d869297b5
commit 5164c7fd3c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 4 additions and 2 deletions

View File

@ -88,7 +88,7 @@ export const useAddNewRecordAndOpenRightDrawer = ({
RelationDefinitionType.ManyToOne
) {
createRecordPayload[
`${relationFieldMetadataItem?.relationDefinition?.targetFieldMetadata.name}Id`
`${relationFieldMetadataItem?.relationDefinition?.sourceFieldMetadata.name}Id`
] = entityId;
}

View File

@ -3,6 +3,7 @@ import { useRecoilValue } from 'recoil';
import {
IconCalendarEvent,
IconCheckbox,
IconHome,
IconMail,
IconNotes,
IconPaperclip,
@ -92,7 +93,7 @@ export const ShowPageRightContainer = ({
{
id: 'summary',
title: 'Summary',
Icon: IconCheckbox,
Icon: IconHome,
hide: !isMobile,
},
{

View File

@ -90,6 +90,7 @@ export {
IconHeartOff,
IconHelpCircle,
IconHierarchy2,
IconHome,
IconInbox,
IconInfoCircle,
IconJson,