mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 01:56:46 +00:00
fix: Fix missing input panel in node details view (#9043)
This commit is contained in:
@@ -562,7 +562,7 @@ export function useNodeHelpers() {
|
||||
|
||||
let data: ITaskDataConnections | undefined = taskData.data;
|
||||
if (paneType === 'input' && taskData.inputOverride) {
|
||||
data = taskData.inputOverride!;
|
||||
data = taskData.inputOverride;
|
||||
}
|
||||
|
||||
if (!data) {
|
||||
@@ -577,16 +577,7 @@ export function useNodeHelpers() {
|
||||
outputIndex: number,
|
||||
connectionType: ConnectionTypes = NodeConnectionType.Main,
|
||||
): INodeExecutionData[] {
|
||||
if (
|
||||
!connectionsData ||
|
||||
!connectionsData.hasOwnProperty(connectionType) ||
|
||||
connectionsData[connectionType] === undefined ||
|
||||
connectionsData[connectionType].length < outputIndex ||
|
||||
connectionsData[connectionType][outputIndex] === null
|
||||
) {
|
||||
return [];
|
||||
}
|
||||
return connectionsData[connectionType][outputIndex] as INodeExecutionData[];
|
||||
return connectionsData?.[connectionType]?.[outputIndex] ?? [];
|
||||
}
|
||||
|
||||
function getBinaryData(
|
||||
@@ -602,16 +593,18 @@ export function useNodeHelpers() {
|
||||
|
||||
const runData: IRunData | null = workflowRunData;
|
||||
|
||||
if (!runData?.[node]?.[runIndex]?.data) {
|
||||
const runDataOfNode = runData?.[node]?.[runIndex]?.data;
|
||||
if (!runDataOfNode) {
|
||||
return [];
|
||||
}
|
||||
|
||||
const inputData = getInputData(runData[node][runIndex].data!, outputIndex, connectionType);
|
||||
const inputData = getInputData(runDataOfNode, outputIndex, connectionType);
|
||||
|
||||
const returnData: IBinaryKeyData[] = [];
|
||||
for (let i = 0; i < inputData.length; i++) {
|
||||
if (inputData[i].hasOwnProperty('binary') && inputData[i].binary !== undefined) {
|
||||
returnData.push(inputData[i].binary!);
|
||||
const binaryDataInIdx = inputData[i]?.binary;
|
||||
if (binaryDataInIdx !== undefined) {
|
||||
returnData.push(binaryDataInIdx);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user