Fixing the validation logic to accept boolean false value.
This commit is contained in:
parent
012d67647e
commit
8aee6c95d8
|
@ -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]
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue