fix: workflow results in FAIL status due to null reference error (#5332)
This commit is contained in:
parent
8266842809
commit
c7641be093
1 changed files with 1 additions and 1 deletions
|
|
@ -179,7 +179,7 @@ export const useWorkflowRun = () => {
|
||||||
setWorkflowRunningData,
|
setWorkflowRunningData,
|
||||||
} = workflowStore.getState()
|
} = workflowStore.getState()
|
||||||
|
|
||||||
const isStringOutput = Object.keys(data.outputs).length === 1 && typeof data.outputs[Object.keys(data.outputs)[0]] === 'string'
|
const isStringOutput = data.outputs && Object.keys(data.outputs).length === 1 && typeof data.outputs[Object.keys(data.outputs)[0]] === 'string'
|
||||||
|
|
||||||
setWorkflowRunningData(produce(workflowRunningData!, (draft) => {
|
setWorkflowRunningData(produce(workflowRunningData!, (draft) => {
|
||||||
draft.result = {
|
draft.result = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue