mirror of
https://github.com/coder/coder.git
synced 2026-09-22 05:05:20 +08:00
fix: save empty template files
This commit is contained in:
@@ -49,7 +49,7 @@ export const MonacoEditor: FC<MonacoEditorProps> = ({
|
||||
}}
|
||||
path={path}
|
||||
onChange={(newValue) => {
|
||||
if (onChange && newValue) {
|
||||
if (onChange && typeof newValue === "string") {
|
||||
onChange(newValue);
|
||||
}
|
||||
}}
|
||||
|
||||
Reference in New Issue
Block a user