mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
fix(Google Sheets Node): Fix insertOrUpdate cell update with object
This commit is contained in:
parent
18efaf397a
commit
0625e2e6bc
|
@ -536,9 +536,15 @@ export class GoogleSheet {
|
||||||
columnNames.indexOf(name),
|
columnNames.indexOf(name),
|
||||||
);
|
);
|
||||||
|
|
||||||
|
let updateValue = item[name] as string;
|
||||||
|
if (typeof updateValue === 'object') {
|
||||||
|
try {
|
||||||
|
updateValue = JSON.stringify(updateValue);
|
||||||
|
} catch (error) {}
|
||||||
|
}
|
||||||
updateData.push({
|
updateData.push({
|
||||||
range: `${decodedRange.name}!${columnToUpdate}${updateRowIndex}`,
|
range: `${decodedRange.name}!${columnToUpdate}${updateRowIndex}`,
|
||||||
values: [[item[name] as string]],
|
values: [[updateValue]],
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue