From dea45682bc083fb733386f6585e0d99b8644843f Mon Sep 17 00:00:00 2001 From: Kota-Yamaguchi <50980947+Kota-Yamaguchi@users.noreply.github.com> Date: Thu, 31 Oct 2024 10:52:59 +0900 Subject: [PATCH] chore: update type definition to resolve lint error in Base usage at text-editor.tsx (#10083) --- .../workflow/nodes/_base/components/editor/base.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/app/components/workflow/nodes/_base/components/editor/base.tsx b/web/app/components/workflow/nodes/_base/components/editor/base.tsx index 55b8e7dd3b..fa4389efdc 100644 --- a/web/app/components/workflow/nodes/_base/components/editor/base.tsx +++ b/web/app/components/workflow/nodes/_base/components/editor/base.tsx @@ -26,7 +26,7 @@ interface Props { isFocus: boolean isInNode?: boolean onGenerated?: (prompt: string) => void - codeLanguages: CodeLanguage + codeLanguages?: CodeLanguage fileList?: FileEntity[] showFileList?: boolean showCodeGenerator?: boolean @@ -78,7 +78,7 @@ const Base: FC = ({ e.stopPropagation() }}> {headerRight} - {showCodeGenerator && ( + {showCodeGenerator && codeLanguages && (