From 3c116dbabe301a2f270efe18c41d837f34eb1760 Mon Sep 17 00:00:00 2001 From: Athou Date: Sat, 3 Feb 2024 11:44:58 +0100 Subject: [PATCH] fix build --- commafeed-client/src/components/code/CodeEditor.tsx | 2 +- commafeed-client/src/components/code/RichCodeEditor.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 }