🎥 Make videos programmatically with React
null and undefined
Jonny Burger0f90a9ccfae1
diff --git a/packages/cli/src/editor/components/RenderModal/SchemaEditor/ZodSwitch.tsx b/packages/cli/src/editor/components/RenderModal/SchemaEditor/ZodSwitch.tsxindex e9b14e1d32..5faba30e96 100644--- a/packages/cli/src/editor/components/RenderModal/SchemaEditor/ZodSwitch.tsx+++ b/packages/cli/src/editor/components/RenderModal/SchemaEditor/ZodSwitch.tsx@@ -107,7 +107,10 @@ export const ZodSwitch: React.FC<{);}- if (typeName === z.ZodFirstPartyTypeKind.ZodUndefined) {+ if (+ typeName === z.ZodFirstPartyTypeKind.ZodUndefined ||+ typeName === z.ZodFirstPartyTypeKind.ZodNull+ ) {return (<ZonNonEditableValuecompact={compact}diff --git a/packages/example/src/Video.tsx b/packages/example/src/Video.tsxindex c9338267e6..584cac69b3 100644--- a/packages/example/src/Video.tsx+++ b/packages/example/src/Video.tsx@@ -699,6 +699,7 @@ export const Index: React.FC = () => {mynum: z.number(),value: z.boolean().refine((v) => v === false || v === true),lol: z.undefined(),+ haha: z.null(),})}defaultProps={{vehicle: 'bus',@@ -711,6 +712,8 @@ export const Index: React.FC = () => {array2: [['bbbbbb'], ['bbbbbb']],mynum: 179,value: false,+ lol: undefined,+ haha: null,}}durationInFrames={150}/>