Skip to content

🎥 Make videos programmatically with React

Remotion Studio: Fix incorrect saving icon for `z.nullable()` types

Jonny Burger8b6060d5bd2a
diff --git a/packages/cli/src/editor/components/RenderModal/SchemaEditor/ZodOrNullishEditor.tsx b/packages/cli/src/editor/components/RenderModal/SchemaEditor/ZodOrNullishEditor.tsx
index caeadaa618..bd6d7e6a0a 100644
--- a/packages/cli/src/editor/components/RenderModal/SchemaEditor/ZodOrNullishEditor.tsx
+++ b/packages/cli/src/editor/components/RenderModal/SchemaEditor/ZodOrNullishEditor.tsx
@@ -113,7 +113,7 @@ export const ZodOrNullishEditor: React.FC<{
setValue={setLocalValue}
jsonPath={jsonPath}
schema={innerSchema}
- defaultValue={value}
+ defaultValue={defaultValue}
onSave={onSave}
showSaveButton={showSaveButton}
onRemove={onRemove}