🎥 Make videos programmatically with React
Update ZodColorEditor.tsx
Jonny Burger4239273645cf
diff --git a/packages/cli/src/editor/components/RenderModal/SchemaEditor/ZodColorEditor.tsx b/packages/cli/src/editor/components/RenderModal/SchemaEditor/ZodColorEditor.tsxindex b83bf1e710..a60d2741b6 100644--- a/packages/cli/src/editor/components/RenderModal/SchemaEditor/ZodColorEditor.tsx+++ b/packages/cli/src/editor/components/RenderModal/SchemaEditor/ZodColorEditor.tsx@@ -107,7 +107,9 @@ export const ZodColorEditor: React.FC<{onSave(() => value);}, [onSave, value]);- const rgb = `#${r.toString(16)}${g.toString(16)}${b.toString(16)}`;+ const rgb = `#${r.toString(16).padStart(2, '0')}${g+ .toString(16)+ .padStart(2, '0')}${b.toString(16).padStart(2, '0')}`;const status = localValue.zodValidation.success ? 'ok' : 'error';