Skip to content

Commit

Permalink
Provide fallback string in case of empty value
Browse files Browse the repository at this point in the history
  • Loading branch information
dylkaw committed Nov 6, 2024
1 parent d953fee commit a59143f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/components/collab/code-editor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ export default function CodeEditor({
setEditor(editor);
}}
onChange={(value) => {
setCode(value);
setCode(value || "");
}}
theme={theme === "dark" ? "vs-dark" : "light"}
/>
Expand Down

0 comments on commit a59143f

Please sign in to comment.