Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

fix: workflow app run (#4831)

zxhlyh0b4902bdc221
diff --git a/web/app/components/share/text-generation/result/index.tsx b/web/app/components/share/text-generation/result/index.tsx
index 9272c20548f..90119a8aa4b 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<IResultProps> = ({
expand: false,
resultText: '',
})
- setRespondingFalse()
},
onIterationStart: ({ data }) => {
setWorkflowProccessData(produce(getWorkflowProccessData()!, (draft) => {
@@ -370,7 +369,7 @@ const Result: FC<IResultProps> = ({
return (
<div className={cn(isNoData && !isCallBatchAPI && 'h-full')}>
- {!isCallBatchAPI && (
+ {!isCallBatchAPI && !isWorkflow && (
(isResponding && !completionRes)
? (
<div className='flex h-full w-full justify-center items-center'>
@@ -378,13 +377,26 @@ const Result: FC<IResultProps> = ({
</div>)
: (
<>
- {(isNoData && !workflowProcessData)
+ {(isNoData)
? <NoData />
: renderTextGenerationRes()
}
</>
)
)}
+ {
+ !isCallBatchAPI && isWorkflow && (
+ (isResponding && !workflowProcessData)
+ ? (
+ <div className='flex h-full w-full justify-center items-center'>
+ <Loading type='area' />
+ </div>
+ )
+ : !workflowProcessData
+ ? <NoData />
+ : renderTextGenerationRes()
+ )
+ }
{isCallBatchAPI && (
<div className='mt-2'>
{renderTextGenerationRes()}