🎥 Make videos programmatically with React
fix local state for objects
Jonny Burger91cb981a3d4d
diff --git a/packages/cli/src/editor/components/RenderModal/SchemaEditor/ZodObjectEditor.tsx b/packages/cli/src/editor/components/RenderModal/SchemaEditor/ZodObjectEditor.tsxindex 1769831cc8..cf79d767cb 100644--- a/packages/cli/src/editor/components/RenderModal/SchemaEditor/ZodObjectEditor.tsx+++ b/packages/cli/src/editor/components/RenderModal/SchemaEditor/ZodObjectEditor.tsx@@ -108,7 +108,7 @@ export const ZodObjectEditor: React.FC<{// In case of null | {a: string, b: string} type, we need to fallback to the default valuedefaultValue={(defaultValue ?? value)[key]}setValue={(val, forceApply) => {- setValue((oldVal) => {+ onChange((oldVal) => {return {...oldVal,[key]: