From 83424d883a7b58db1f2295f863aad59afcc5e0d4 Mon Sep 17 00:00:00 2001 From: hexastack Date: Mon, 3 Feb 2025 10:39:06 +0100 Subject: [PATCH] fix: content edit --- frontend/src/components/contents/ContentDialog.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/frontend/src/components/contents/ContentDialog.tsx b/frontend/src/components/contents/ContentDialog.tsx index 164e69aa..199e7cfa 100644 --- a/frontend/src/components/contents/ContentDialog.tsx +++ b/frontend/src/components/contents/ContentDialog.tsx @@ -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 = ({ name={contentField.name} control={control} defaultValue={ - content ? content["dynamicFields"][contentField.name] : null + content && content["dynamicFields"] + ? content["dynamicFields"][contentField.name] + : null } rules={ contentField.name === "title"