1
0
Fork 0
mirror of synced 2024-06-28 11:00:55 +12:00

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 09e126bae9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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]
}