fix(Google Sheets Node): Fix issue with paired items not being set correctly (#7862)

https://community.n8n.io/t/error-unknown-top-level-item-key-paireditems-item-0/33536/

Co-authored-by: Michael Kret <michael.k@radency.com>
This commit is contained in:
Jon 2023-11-29 14:12:50 +00:00 committed by GitHub
parent 51d1f5b820
commit 5207a2fe52
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View file

@ -266,7 +266,7 @@ export async function execute(
for (const [index, entry] of setData.entries()) { for (const [index, entry] of setData.entries()) {
returnData.push({ returnData.push({
json: entry, json: entry,
pairedItems: { item: index }, pairedItem: { item: index },
}); });
} }
return returnData; return returnData;

View file

@ -435,7 +435,7 @@ export async function execute(
for (const [index, entry] of mappedValues.entries()) { for (const [index, entry] of mappedValues.entries()) {
returnData.push({ returnData.push({
json: entry, json: entry,
pairedItems: { item: index }, pairedItem: { item: index },
}); });
} }
return returnData; return returnData;

View file

@ -414,7 +414,7 @@ export async function execute(
for (const [index, entry] of mappedValues.entries()) { for (const [index, entry] of mappedValues.entries()) {
returnData.push({ returnData.push({
json: entry, json: entry,
pairedItems: { item: index }, pairedItem: { item: index },
}); });
} }
return returnData; return returnData;