From 8d9c86ac4c9073a7a60153c647d9f8907fce9387 Mon Sep 17 00:00:00 2001 From: Joel Date: Fri, 15 Mar 2024 11:47:53 +0800 Subject: [PATCH] fix: advance setting error --- .../nodes/question-classifier/components/advanced-setting.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/app/components/workflow/nodes/question-classifier/components/advanced-setting.tsx b/web/app/components/workflow/nodes/question-classifier/components/advanced-setting.tsx index fa52a3039c..5b5170fb84 100644 --- a/web/app/components/workflow/nodes/question-classifier/components/advanced-setting.tsx +++ b/web/app/components/workflow/nodes/question-classifier/components/advanced-setting.tsx @@ -32,7 +32,7 @@ const AdvancedSetting: FC = ({ placeholder={t(`${i18nPrefix}.instructionPlaceholder`)!} headerRight={(
-
{instruction.length}
+
{instruction?.length || 0}
)}