pr comments

This commit is contained in:
Martin McKeaveney 2022-08-10 16:26:10 +01:00
parent b417521725
commit b3ff94ea84
2 changed files with 2 additions and 2 deletions

View File

@ -120,7 +120,8 @@ function typeCoercion(filters, table) {
} }
const hasNullFilters = filters => const hasNullFilters = filters =>
filters.length === 0 || filters.some(filter => filter.value === null) filters.length === 0 ||
filters.some(filter => filter.value === null || filter.value === "")
exports.run = async function ({ inputs, appId }) { exports.run = async function ({ inputs, appId }) {
const { tableId, filters, sortColumn, sortOrder, limit } = inputs const { tableId, filters, sortColumn, sortOrder, limit } = inputs

View File

@ -50,7 +50,6 @@ describe("Test a query step automation", () => {
}) })
it("Returns all rows when onEmptyFilter has no value and no filters are passed", async () => { it("Returns all rows when onEmptyFilter has no value and no filters are passed", async () => {
console.log(rows)
const inputs = { const inputs = {
tableId: table._id, tableId: table._id,
filters: {}, filters: {},