From bc2666717357dd53711cbc70a77f03b7f1bc051c Mon Sep 17 00:00:00 2001 From: StyleZhang Date: Fri, 31 May 2024 11:33:39 +0800 Subject: [PATCH] fix: workflow app run --- .../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 9272c20548fb7..90119a8aa4b65 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()}