Allow deleting cell
This commit is contained in:
parent
606bad7f4d
commit
c202f88b6d
1 changed files with 5 additions and 1 deletions
|
@ -212,7 +212,7 @@ class GoogleSheetsIntegration implements DatasourcePlus {
|
||||||
await setupCreationAuth(this.config)
|
await setupCreationAuth(this.config)
|
||||||
|
|
||||||
// Initialise oAuth client
|
// Initialise oAuth client
|
||||||
let googleConfig = await configs.getGoogleDatasourceConfig()
|
const googleConfig = await configs.getGoogleDatasourceConfig()
|
||||||
if (!googleConfig) {
|
if (!googleConfig) {
|
||||||
throw new HTTPError("Google config not found", 400)
|
throw new HTTPError("Google config not found", 400)
|
||||||
}
|
}
|
||||||
|
@ -551,6 +551,10 @@ class GoogleSheetsIntegration implements DatasourcePlus {
|
||||||
typeof query.row === "string" ? JSON.parse(query.row) : query.row
|
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]
|
||||||
|
|
||||||
|
if (row[key] === null) {
|
||||||
|
row[key] = ""
|
||||||
|
}
|
||||||
}
|
}
|
||||||
await row.save()
|
await row.save()
|
||||||
return [
|
return [
|
||||||
|
|
Loading…
Reference in a new issue