fix sequence number and tokens in result panel

This commit is contained in:
JzoNg
2024-03-13 18:13:16 +08:00
parent 68fa81ec82
commit 1728513634
4 changed files with 5 additions and 5 deletions

View File

@ -116,10 +116,10 @@ export const useWorkflowRun = () => {
body: params,
},
{
onWorkflowStarted: ({ task_id, workflow_run_id, sequence_number }) => {
onWorkflowStarted: ({ task_id, workflow_run_id, data }) => {
useStore.setState({ runningStatus: WorkflowRunningStatus.Running })
useStore.setState({ taskId: task_id })
useStore.setState({ currentSequenceNumber: sequence_number })
useStore.setState({ currentSequenceNumber: data.sequence_number })
useStore.setState({ workflowRunId: workflow_run_id })
const newNodes = produce(getNodes(), (draft) => {
draft.forEach((node) => {