mirror of
https://github.com/hexastack/hexabot
synced 2025-01-22 10:35:37 +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}
|
||||
control={control}
|
||||
defaultValue={
|
||||
content
|
||||
? content?.["dynamicFields"]?.[contentField.name]
|
||||
: null
|
||||
content ? content["dynamicFields"][contentField.name] : null
|
||||
}
|
||||
rules={
|
||||
contentField.name === "title"
|
||||
|
Loading…
Reference in New Issue
Block a user