fix(frontend): make dynamicFields field required

This commit is contained in:
yassinedorbozgithub 2025-01-08 18:39:29 +01:00
parent 8326c8c121
commit cbd39b2033

View File

@ -234,9 +234,7 @@ export const ContentDialog: FC<ContentDialogProps> = ({
name={contentField.name}
control={control}
defaultValue={
content
? content?.["dynamicFields"]?.[contentField.name]
: null
content ? content["dynamicFields"][contentField.name] : null
}
rules={
contentField.name === "title"