type check
This commit is contained in:
parent
67f123d60f
commit
00f12698d7
|
@ -379,7 +379,7 @@ 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 = JSON.parse(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]
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue