Merge pull request #8088 from shumpeiKishi/bug/automation-update-row-boolean-false-doesnt-work
Automation: Update row to make a boolean Value "FALSE" does not work #8030
This commit is contained in:
commit
d50d456e0d
|
@ -66,9 +66,9 @@ exports.run = async function ({ inputs, appId, emitter }) {
|
||||||
}
|
}
|
||||||
const tableId = inputs.row.tableId
|
const tableId = inputs.row.tableId
|
||||||
|
|
||||||
// clear any falsy 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)) {
|
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]
|
delete inputs.row[propKey]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue