fix: workflow results in FAIL status due to null reference error (#5332)

This commit is contained in:
rerorero 2024-06-18 10:33:33 +09:00 committed by GitHub
parent 8266842809
commit c7641be093
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -179,7 +179,7 @@ export const useWorkflowRun = () => {
setWorkflowRunningData,
} = 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) => {
draft.result = {