mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-12 20:19:12 +08:00
fix: workflow results in FAIL status due to null reference error (#5332)
This commit is contained in:
parent
8266842809
commit
c7641be093
@ -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…
x
Reference in New Issue
Block a user