mirror of
https://github.com/hexastack/hexabot
synced 2025-06-10 16:36:42 +00:00
fix(frontend): make dynamicFields field required
This commit is contained in:
parent
8326c8c121
commit
cbd39b2033
@ -234,9 +234,7 @@ export const ContentDialog: FC<ContentDialogProps> = ({
|
|||||||
name={contentField.name}
|
name={contentField.name}
|
||||||
control={control}
|
control={control}
|
||||||
defaultValue={
|
defaultValue={
|
||||||
content
|
content ? content["dynamicFields"][contentField.name] : null
|
||||||
? content?.["dynamicFields"]?.[contentField.name]
|
|
||||||
: null
|
|
||||||
}
|
}
|
||||||
rules={
|
rules={
|
||||||
contentField.name === "title"
|
contentField.name === "title"
|
||||||
|
Loading…
Reference in New Issue
Block a user