Skip to content

Commit a59143f

Browse files
committed
Provide fallback string in case of empty value
1 parent d953fee commit a59143f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

frontend/components/collab/code-editor.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ export default function CodeEditor({
147147
setEditor(editor);
148148
}}
149149
onChange={(value) => {
150-
setCode(value);
150+
setCode(value || "");
151151
}}
152152
theme={theme === "dark" ? "vs-dark" : "light"}
153153
/>

0 commit comments

Comments
 (0)