diff --git a/packages/server/src/automations/steps/updateRow.js b/packages/server/src/automations/steps/updateRow.js index 275095c98f..5a2c158c5f 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 null or empty string properties so that they aren't updated + // clear any undefined, null or empty string properties so that they aren't updated for (let propKey of Object.keys(inputs.row)) { - if (inputs.row[propKey] === null || inputs.row[propKey] === "") { + if (inputs.row[propKey] == null || inputs.row[propKey] === "") { delete inputs.row[propKey] } }