mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
fix(Google Sheets Node): Fix for auto-range detection
This commit is contained in:
@@ -582,6 +582,7 @@ export class GoogleSheet {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Loop over all the lookup values and try to find a row to return
|
||||
let rowIndex: number;
|
||||
let returnColumnIndex: number;
|
||||
@@ -617,7 +618,13 @@ export class GoogleSheet {
|
||||
}
|
||||
}
|
||||
|
||||
return this.convertSheetDataArrayToObjectArray(removeEmptyColumns(returnData), 1, keys, true);
|
||||
const dataWithoutEmptyColumns = removeEmptyColumns(returnData);
|
||||
return this.convertSheetDataArrayToObjectArray(
|
||||
dataWithoutEmptyColumns,
|
||||
1,
|
||||
dataWithoutEmptyColumns[0] as string[],
|
||||
true,
|
||||
);
|
||||
}
|
||||
|
||||
private async convertObjectArrayToSheetDataArray(
|
||||
|
||||
Reference in New Issue
Block a user