Table filter stack not being cleared

HI @LaurenM , thanks for taking a look.

The table / query are behaving strangely in general.

For example, see the screen shot below. You can see I have opened the modal containing the table and the queries have ran twice. At this point I have not set a filter etc. The query "sql_get_all_assets" is set to only run when manually triggered. In the Open event for the modal I trigger "Clear filter stack" to clear filters and rerun the query. For some reason it runs twice. The query is then triggered by either the "Change Filter" or "Change Page" event in the table. event handlers.

In the next screen grab below I have simply clicked the "Filters" button in the table. You're quite right, it does display an empty placeholder, but, as you can see it then runs the queries a further 3 times and at this point I havent actually added search criteria (NB the asset count query is triggered on Success of the get all assets query).

You can see its definitely rerunning the query based on the empty placeholder (i.e. empty value and therefore no results returned). Whats more strange is the fact its running it three times?

With regards the default filter / placeholder. I actually have the "Default Filter" for the table set as No filters, yet it seems to be ignored and defaults to "Asset ID"? If I actually set a default filter, then when I click the filters button it ignores the field I have set as default and reverts to "Asset ID" anyway. I have actually put in a feature request to have an "Apply Filter" button here Feature Request.

I've attached an export of my app if that helps track down either what I'm doing incorrectly of the bug.

Cheers,

Rob
Routing Tasks.json (2 Bytes)