Skip to content

Commit

Permalink
Fix display of boolean fields in timeline activities (#6361)
Browse files Browse the repository at this point in the history
before
<img width="556" alt="Capture d’écran 2024-07-22 à 11 29 59"
src="https://github.com/user-attachments/assets/c3f76698-77f8-411f-8488-c3b119184f91">

after
<img width="963" alt="Capture d’écran 2024-07-22 à 11 31 07"
src="https://github.com/user-attachments/assets/29248677-16c6-49f5-8a86-cfe8aa677d86">
  • Loading branch information
ijreilly authored Jul 22, 2024
1 parent 4f249df commit 14fcd5f
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -23,7 +24,7 @@ export const EventFieldDiffValueEffect = ({
const setRecordValue = useSetRecordValue();

useEffect(() => {
if (!diffRecord) return;
if (!isDefined(diffRecord)) return;

const forgedObjectRecord = {
__typename: mainObjectMetadataItem.nameSingular,
Expand Down

0 comments on commit 14fcd5f

Please sign in to comment.