mirror of
https://github.com/hexastack/hexabot
synced 2025-02-23 12:59:14 +00:00
fix: content edit
This commit is contained in:
parent
1b5b759549
commit
83424d883a
@ -6,7 +6,6 @@
|
||||
* 2. All derivative works must include clear attribution to the original creator and software, Hexastack and Hexabot, in a prominent location (e.g., in the software's "About" section, documentation, and README file).
|
||||
*/
|
||||
|
||||
|
||||
import LinkIcon from "@mui/icons-material/Link";
|
||||
import {
|
||||
Dialog,
|
||||
@ -238,7 +237,9 @@ export const ContentDialog: FC<ContentDialogProps> = ({
|
||||
name={contentField.name}
|
||||
control={control}
|
||||
defaultValue={
|
||||
content ? content["dynamicFields"][contentField.name] : null
|
||||
content && content["dynamicFields"]
|
||||
? content["dynamicFields"][contentField.name]
|
||||
: null
|
||||
}
|
||||
rules={
|
||||
contentField.name === "title"
|
||||
|
Loading…
Reference in New Issue
Block a user