Merge pull request #7647 from Budibase/bug/googlesheets-update-master
Google Sheets Update: Parse incoming row as JSON
This commit is contained in:
commit
21d1ea81d8
|
@ -379,7 +379,8 @@ module GoogleSheetsModule {
|
|||
const rows = await sheet.getRows()
|
||||
const row = rows[query.rowIndex]
|
||||
if (row) {
|
||||
const updateValues = query.row
|
||||
const updateValues =
|
||||
typeof query.row === "string" ? JSON.parse(query.row) : query.row
|
||||
for (let key in updateValues) {
|
||||
row[key] = updateValues[key]
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue