Merge pull request #7647 from Budibase/bug/googlesheets-update-master

Google Sheets Update: Parse incoming row as JSON
This commit is contained in:
melohagan 2022-09-05 18:49:58 +01:00 committed by GitHub
commit 21d1ea81d8
1 changed files with 2 additions and 1 deletions

View File

@ -379,7 +379,8 @@ module GoogleSheetsModule {
const rows = await sheet.getRows() const rows = await sheet.getRows()
const row = rows[query.rowIndex] const row = rows[query.rowIndex]
if (row) { if (row) {
const updateValues = query.row const updateValues =
typeof query.row === "string" ? JSON.parse(query.row) : query.row
for (let key in updateValues) { for (let key in updateValues) {
row[key] = updateValues[key] row[key] = updateValues[key]
} }