fix: save empty template files

This commit is contained in:
Jeremy Ruppel
2026-02-19 20:46:12 +00:00
parent e8d6016807
commit 52a848c65e
@@ -49,7 +49,7 @@ export const MonacoEditor: FC<MonacoEditorProps> = ({
}}
path={path}
onChange={(newValue) => {
if (onChange && newValue) {
if (onChange && typeof newValue === "string") {
onChange(newValue);
}
}}