Skip to content

Commit

Permalink
Fix storybook tests (#8260)
Browse files Browse the repository at this point in the history
Before 
<img width="717" alt="Capture d’écran 2024-10-31 à 16 58 34"
src="https://github.com/user-attachments/assets/b8ec61f3-11c2-497f-9e4f-183b7989fb59">

After
<img width="717" alt="Capture d’écran 2024-10-31 à 16 58 14"
src="https://github.com/user-attachments/assets/8e0a1fbf-19c4-4cd0-ab7b-58ebb5ded1f5">



Before
<img width="586" alt="Capture d’écran 2024-10-31 à 16 57 59"
src="https://github.com/user-attachments/assets/eb6caf91-3953-4a8f-a847-17a50cc40d02">

After
<img width="586" alt="Capture d’écran 2024-10-31 à 16 57 29"
src="https://github.com/user-attachments/assets/9eee3502-66b4-41c9-a924-b5d3ddb921e3">
  • Loading branch information
thomtrp authored Oct 31, 2024
1 parent 3fbd312 commit 74291e5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,10 @@ export const SettingsDataModelFieldRelationForm = ({
});

const selectedObjectMetadataItem = findObjectMetadataItemById(
watchFormValue('relation.objectMetadataId'),
watchFormValue(
'relation.objectMetadataId',
initialRelationObjectMetadataItem?.id,
),
);

const isMobile = useIsMobile();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export const mockedTimelineActivities: Array<TimelineActivity> = [
properties: null,
updatedAt: '2023-04-26T10:12:42.33625+00:00',
id: '79f84835-b2f9-4ab5-8ab9-17dbcc45dda3',
linkedObjectMetadataId: '1ad72a42-6ab4-4474-a62a-a57cae3c0298',
linkedObjectMetadataId: 'e7a5e974-affc-40d5-be9f-2ba2783c21be',
linkedRecordCachedName: '',
linkedRecordId: 'ce40eca0-8f4b-4bba-ba91-5cbd870c64d3',
name: 'calendarEvent.linked',
Expand All @@ -30,7 +30,7 @@ export const mockedTimelineActivities: Array<TimelineActivity> = [
properties: null,
updatedAt: '2023-04-26T10:12:42.33625+00:00',
id: '79f84835-b2f9-4ab5-8ab9-17dbcc45dda3',
linkedObjectMetadataId: '1ad72a42-6ab4-4474-a62a-a57cae3c0298',
linkedObjectMetadataId: '3385d352-10a0-428f-9863-e52e7164b26c',
linkedRecordCachedName: '',
linkedRecordId: 'ce40eca0-8f4b-4bba-ba91-5cbd870c64d5',
name: 'message.linked',
Expand All @@ -55,7 +55,7 @@ export const mockedTimelineActivities: Array<TimelineActivity> = [
properties: null,
updatedAt: '2023-04-26T10:12:42.33625+00:00',
id: '79f84835-b2f9-4ab5-8ab9-17dbcc45dda3',
linkedObjectMetadataId: '1ad72a42-6ab4-4474-a62a-a57cae3c0298',
linkedObjectMetadataId: '25e10253-f0e1-4a6d-90e3-ad62a4b20292',
linkedRecordCachedName: 'New Task',
linkedRecordId: 'ce40eca0-8f4b-4bba-ba91-5cbd870c64d2',
name: 'linked-task.created',
Expand Down

0 comments on commit 74291e5

Please sign in to comment.