1
0
Fork 0
mirror of synced 2024-06-28 02:50:50 +12:00

pr comments

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

View file

@ -120,7 +120,8 @@ function typeCoercion(filters, table) {
}
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 }) {
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 () => {
console.log(rows)
const inputs = {
tableId: table._id,
filters: {},