Fix storybook tests (#8260)
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">
This commit is contained in:
@ -101,7 +101,10 @@ export const SettingsDataModelFieldRelationForm = ({
|
||||
});
|
||||
|
||||
const selectedObjectMetadataItem = findObjectMetadataItemById(
|
||||
watchFormValue('relation.objectMetadataId'),
|
||||
watchFormValue(
|
||||
'relation.objectMetadataId',
|
||||
initialRelationObjectMetadataItem?.id,
|
||||
),
|
||||
);
|
||||
|
||||
const isMobile = useIsMobile();
|
||||
|
||||
@ -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',
|
||||
@ -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',
|
||||
@ -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',
|
||||
|
||||
Reference in New Issue
Block a user