diff --git a/commafeed-client/src/components/code/CodeEditor.tsx b/commafeed-client/src/components/code/CodeEditor.tsx index 7f3b9f8f..2345cca0 100644 --- a/commafeed-client/src/components/code/CodeEditor.tsx +++ b/commafeed-client/src/components/code/CodeEditor.tsx @@ -6,7 +6,7 @@ import { type ReactNode } from "react" interface CodeEditorProps { description?: ReactNode language: "css" | "javascript" - value: string + value?: string onChange: (value: string | undefined) => void } diff --git a/commafeed-client/src/components/code/RichCodeEditor.tsx b/commafeed-client/src/components/code/RichCodeEditor.tsx index 0de174cf..b2d7f6eb 100644 --- a/commafeed-client/src/components/code/RichCodeEditor.tsx +++ b/commafeed-client/src/components/code/RichCodeEditor.tsx @@ -27,7 +27,7 @@ const init = async () => { interface RichCodeEditorProps { height: number | string language: "css" | "javascript" - value: string + value?: string onChange: (value: string | undefined) => void }