Commit b8b74a61 authored by Joel's avatar Joel

fix: show gen res

parent 57de19a5
......@@ -98,6 +98,8 @@ const TextGeneration: FC<IMainProps> = ({
setControlSend(Date.now())
// eslint-disable-next-line @typescript-eslint/no-use-before-define
setAllTaskList([]) // clear batch task running status
// eslint-disable-next-line @typescript-eslint/no-use-before-define
showResSidebar()
}
const [allTaskList, setAllTaskList, getLatestTaskList] = useGetState<Task[]>([])
......@@ -229,6 +231,8 @@ const TextGeneration: FC<IMainProps> = ({
setControlSend(Date.now())
// clear run once task status
setControlStopResponding(Date.now())
// eslint-disable-next-line @typescript-eslint/no-use-before-define
showResSidebar()
}
const handleCompleted = (taskId?: number, isSuccess?: boolean) => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment