Skip to content

Commit

Permalink
fix: workflow app run
Browse files Browse the repository at this point in the history
  • Loading branch information
zxhlyh committed May 31, 2024
1 parent e9904e6 commit bc26667
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions web/app/components/share/text-generation/result/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,6 @@ const Result: FC<IResultProps> = ({
expand: false,
resultText: '',
})
setRespondingFalse()
},
onIterationStart: ({ data }) => {
setWorkflowProccessData(produce(getWorkflowProccessData()!, (draft) => {
Expand Down Expand Up @@ -370,21 +369,34 @@ 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'>
<Loading type='area' />
</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()}
Expand Down

0 comments on commit bc26667

Please sign in to comment.