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:
Thomas Trompette
2024-10-31 17:19:44 +01:00
committed by GitHub
parent 3fbd312141
commit 74291e531c
2 changed files with 7 additions and 4 deletions

View File

@ -101,7 +101,10 @@ export const SettingsDataModelFieldRelationForm = ({
});
const selectedObjectMetadataItem = findObjectMetadataItemById(
watchFormValue('relation.objectMetadataId'),
watchFormValue(
'relation.objectMetadataId',
initialRelationObjectMetadataItem?.id,
),
);
const isMobile = useIsMobile();