mirror of
https://github.com/langgenius/dify.git
synced 2024-11-16 11:42:29 +08:00
fix: workflow app run (#4831)
This commit is contained in:
parent
e9904e66e6
commit
0b4902bdc2
|
@ -205,7 +205,6 @@ const Result: FC<IResultProps> = ({
|
||||||
expand: false,
|
expand: false,
|
||||||
resultText: '',
|
resultText: '',
|
||||||
})
|
})
|
||||||
setRespondingFalse()
|
|
||||||
},
|
},
|
||||||
onIterationStart: ({ data }) => {
|
onIterationStart: ({ data }) => {
|
||||||
setWorkflowProccessData(produce(getWorkflowProccessData()!, (draft) => {
|
setWorkflowProccessData(produce(getWorkflowProccessData()!, (draft) => {
|
||||||
|
@ -370,7 +369,7 @@ const Result: FC<IResultProps> = ({
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className={cn(isNoData && !isCallBatchAPI && 'h-full')}>
|
<div className={cn(isNoData && !isCallBatchAPI && 'h-full')}>
|
||||||
{!isCallBatchAPI && (
|
{!isCallBatchAPI && !isWorkflow && (
|
||||||
(isResponding && !completionRes)
|
(isResponding && !completionRes)
|
||||||
? (
|
? (
|
||||||
<div className='flex h-full w-full justify-center items-center'>
|
<div className='flex h-full w-full justify-center items-center'>
|
||||||
|
@ -378,13 +377,26 @@ const Result: FC<IResultProps> = ({
|
||||||
</div>)
|
</div>)
|
||||||
: (
|
: (
|
||||||
<>
|
<>
|
||||||
{(isNoData && !workflowProcessData)
|
{(isNoData)
|
||||||
? <NoData />
|
? <NoData />
|
||||||
: renderTextGenerationRes()
|
: renderTextGenerationRes()
|
||||||
}
|
}
|
||||||
</>
|
</>
|
||||||
)
|
)
|
||||||
)}
|
)}
|
||||||
|
{
|
||||||
|
!isCallBatchAPI && isWorkflow && (
|
||||||
|
(isResponding && !workflowProcessData)
|
||||||
|
? (
|
||||||
|
<div className='flex h-full w-full justify-center items-center'>
|
||||||
|
<Loading type='area' />
|
||||||
|
</div>
|
||||||
|
)
|
||||||
|
: !workflowProcessData
|
||||||
|
? <NoData />
|
||||||
|
: renderTextGenerationRes()
|
||||||
|
)
|
||||||
|
}
|
||||||
{isCallBatchAPI && (
|
{isCallBatchAPI && (
|
||||||
<div className='mt-2'>
|
<div className='mt-2'>
|
||||||
{renderTextGenerationRes()}
|
{renderTextGenerationRes()}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user