From c202f88b6d2d91c352be25e0a4df1407deeb4fc1 Mon Sep 17 00:00:00 2001 From: Adria Navarro Date: Thu, 28 Sep 2023 12:42:42 +0200 Subject: [PATCH] Allow deleting cell --- packages/server/src/integrations/googlesheets.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/server/src/integrations/googlesheets.ts b/packages/server/src/integrations/googlesheets.ts index 0b9b0e2df7..7697b55243 100644 --- a/packages/server/src/integrations/googlesheets.ts +++ b/packages/server/src/integrations/googlesheets.ts @@ -212,7 +212,7 @@ class GoogleSheetsIntegration implements DatasourcePlus { await setupCreationAuth(this.config) // Initialise oAuth client - let googleConfig = await configs.getGoogleDatasourceConfig() + const googleConfig = await configs.getGoogleDatasourceConfig() if (!googleConfig) { 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 for (let key in updateValues) { row[key] = updateValues[key] + + if (row[key] === null) { + row[key] = "" + } } await row.save() return [