diff --git a/packages/server/src/utils/index.ts b/packages/server/src/utils/index.ts index bb048490d47..7d0823a526a 100644 --- a/packages/server/src/utils/index.ts +++ b/packages/server/src/utils/index.ts @@ -481,6 +481,7 @@ export const isStartNodeDependOnInput = (startingNodes: IReactFlowNode[], nodes: const inputVariables = getInputVariables(node.data.inputs[inputName]) if (inputVariables.length > 0) return true } + if (Object.prototype.hasOwnProperty.call(node.data, 'credential')) return true } const whitelistNodeNames = ['vectorStoreToDocument', 'autoGPT'] for (const node of nodes) {