Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: content edit #664

Merged
merged 15 commits into from
Feb 7, 2025
Merged
5 changes: 3 additions & 2 deletions frontend/src/components/contents/ContentDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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
marrouchi marked this conversation as resolved.
Show resolved Hide resolved
}
rules={
contentField.name === "title"
Expand Down