diff --git a/packages/twenty-front/src/modules/activities/timelineActivities/rows/main-object/components/EventFieldDiffValueEffect.tsx b/packages/twenty-front/src/modules/activities/timelineActivities/rows/main-object/components/EventFieldDiffValueEffect.tsx index f07a2fc7361c..6e20cfc4faa8 100644 --- a/packages/twenty-front/src/modules/activities/timelineActivities/rows/main-object/components/EventFieldDiffValueEffect.tsx +++ b/packages/twenty-front/src/modules/activities/timelineActivities/rows/main-object/components/EventFieldDiffValueEffect.tsx @@ -5,6 +5,7 @@ import { FieldMetadataItem } from '@/object-metadata/types/FieldMetadataItem'; import { ObjectMetadataItem } from '@/object-metadata/types/ObjectMetadataItem'; import { useSetRecordValue } from '@/object-record/record-store/contexts/RecordFieldValueSelectorContext'; import { recordStoreFamilyState } from '@/object-record/record-store/states/recordStoreFamilyState'; +import { isDefined } from 'twenty-ui'; export const EventFieldDiffValueEffect = ({ diffArtificialRecordStoreId, @@ -23,7 +24,7 @@ export const EventFieldDiffValueEffect = ({ const setRecordValue = useSetRecordValue(); useEffect(() => { - if (!diffRecord) return; + if (!isDefined(diffRecord)) return; const forgedObjectRecord = { __typename: mainObjectMetadataItem.nameSingular,