From 0b4902bdc221df9ce4c00852ffa4eec4880afad5 Mon Sep 17 00:00:00 2001 From: zxhlyh Date: Fri, 31 May 2024 12:15:25 +0800 Subject: [PATCH] fix: workflow app run (#4831) --- .../share/text-generation/result/index.tsx | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/web/app/components/share/text-generation/result/index.tsx b/web/app/components/share/text-generation/result/index.tsx index 9272c20548..90119a8aa4 100644 --- a/web/app/components/share/text-generation/result/index.tsx +++ b/web/app/components/share/text-generation/result/index.tsx @@ -205,7 +205,6 @@ const Result: FC = ({ expand: false, resultText: '', }) - setRespondingFalse() }, onIterationStart: ({ data }) => { setWorkflowProccessData(produce(getWorkflowProccessData()!, (draft) => { @@ -370,7 +369,7 @@ const Result: FC = ({ return (
- {!isCallBatchAPI && ( + {!isCallBatchAPI && !isWorkflow && ( (isResponding && !completionRes) ? (
@@ -378,13 +377,26 @@ const Result: FC = ({
) : ( <> - {(isNoData && !workflowProcessData) + {(isNoData) ? : renderTextGenerationRes() } ) )} + { + !isCallBatchAPI && isWorkflow && ( + (isResponding && !workflowProcessData) + ? ( +
+ +
+ ) + : !workflowProcessData + ? + : renderTextGenerationRes() + ) + } {isCallBatchAPI && (
{renderTextGenerationRes()}