Error invalid link (#10288)
Don't have access to push on https://github.com/twentyhq/twenty/pull/9942, so close it and open new PR here <img width="244" alt="Screenshot 2025-02-18 at 11 09 39" src="https://github.com/user-attachments/assets/4bc1b436-147a-4d17-88c8-2aff0fffd06a" /> <img width="246" alt="Screenshot 2025-02-18 at 11 09 51" src="https://github.com/user-attachments/assets/3d7b2972-ab7e-4e3b-a177-658325a3bb70" /> Ok for RecordInlineCell / RecordTableCell and EmailsFieldInput / LinksFieldInput. I think it's too complex for a so small issue (agree with you khuddite) closes https://github.com/twentyhq/twenty/issues/9778 on top of https://github.com/twentyhq/twenty/pull/9942 from @khuddite --------- Co-authored-by: khuddite <khuddite@gmail.com> Co-authored-by: khuddite <62555977+khuddite@users.noreply.github.com> Co-authored-by: Charles Bochet <charles@twenty.com>
This commit is contained in:
@ -14,6 +14,7 @@ import { useObjectMetadataItem } from '@/object-metadata/hooks/useObjectMetadata
|
||||
import { CoreObjectNameSingular } from '@/object-metadata/types/CoreObjectNameSingular';
|
||||
import { formatFieldMetadataItemAsFieldDefinition } from '@/object-metadata/utils/formatFieldMetadataItemAsFieldDefinition';
|
||||
import { FieldContext } from '@/object-record/record-field/contexts/FieldContext';
|
||||
import { RecordFieldComponentInstanceContext } from '@/object-record/record-field/states/contexts/RecordFieldComponentInstanceContext';
|
||||
import { RecordInlineCell } from '@/object-record/record-inline-cell/components/RecordInlineCell';
|
||||
import { PropertyBox } from '@/object-record/record-inline-cell/property-box/components/PropertyBox';
|
||||
import { mapArrayToObject } from '~/utils/array/mapArrayToObject';
|
||||
@ -113,7 +114,13 @@ export const CalendarEventDetails = ({
|
||||
maxWidth: 300,
|
||||
}}
|
||||
>
|
||||
<RecordInlineCell readonly />
|
||||
<RecordFieldComponentInstanceContext.Provider
|
||||
value={{
|
||||
instanceId: `${calendarEvent.id}-${fieldName}`,
|
||||
}}
|
||||
>
|
||||
<RecordInlineCell readonly />
|
||||
</RecordFieldComponentInstanceContext.Provider>
|
||||
</FieldContext.Provider>
|
||||
</StyledPropertyBox>
|
||||
));
|
||||
|
||||
Reference in New Issue
Block a user