Skip to content

Commit

Permalink
fix(Google Sheets Node): Fix insertOrUpdate cell update with object
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-radency authored and netroy committed Mar 30, 2023
1 parent f5183c6 commit 1797cda
Showing 1 changed file with 7 additions and 1 deletion.
Expand Up @@ -536,9 +536,15 @@ export class GoogleSheet {
columnNames.indexOf(name),
);

let updateValue = item[name] as string;
if (typeof updateValue === 'object') {
try {
updateValue = JSON.stringify(updateValue);
} catch (error) {}
}
updateData.push({
range: `${decodedRange.name}!${columnToUpdate}${updateRowIndex}`,
values: [[item[name] as string]],
values: [[updateValue]],
});
}
}
Expand Down

0 comments on commit 1797cda

Please sign in to comment.