diff --git a/autogpt_platform/frontend/src/app/(platform)/build/stores/edgeStore.ts b/autogpt_platform/frontend/src/app/(platform)/build/stores/edgeStore.ts index 0d0e4202fb..cae1d995da 100644 --- a/autogpt_platform/frontend/src/app/(platform)/build/stores/edgeStore.ts +++ b/autogpt_platform/frontend/src/app/(platform)/build/stores/edgeStore.ts @@ -115,10 +115,11 @@ export const useEdgeStore = create((set, get) => ({ edge.data?.beadData ?? new Map(); - if ( - edge.targetHandle && - edge.targetHandle in executionResult.input_data - ) { + const inputValue = edge.targetHandle + ? executionResult.input_data[edge.targetHandle] + : undefined; + + if (inputValue !== undefined && inputValue !== null) { beadData.set(executionResult.node_exec_id, executionResult.status); }