From 8aee6c95d85d74734cd91c9b5ed2539db88b08ed Mon Sep 17 00:00:00 2001 From: Shumpei Kishi Date: Mon, 3 Oct 2022 15:09:43 +0900 Subject: [PATCH] Fixing the validation logic to accept boolean false value. --- packages/server/src/automations/steps/updateRow.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/server/src/automations/steps/updateRow.js b/packages/server/src/automations/steps/updateRow.js index f66fcf9432..275095c98f 100644 --- a/packages/server/src/automations/steps/updateRow.js +++ b/packages/server/src/automations/steps/updateRow.js @@ -66,9 +66,9 @@ exports.run = async function ({ inputs, appId, emitter }) { } const tableId = inputs.row.tableId - // clear any falsy properties so that they aren't updated + // clear any null or empty string properties so that they aren't updated for (let propKey of Object.keys(inputs.row)) { - if (!inputs.row[propKey] || inputs.row[propKey] === "") { + if (inputs.row[propKey] === null || inputs.row[propKey] === "") { delete inputs.row[propKey] } }