retool - javascript filtering doesnt work in event handlers

645 Views Asked by At

can someone help me with problem described here: https://community.retool.com/t/i-need-ur-help-with-api-filtering/10167

Filtering doesnt work, and retool community is too small, there is no help.

Thanks.

1

There are 1 best solutions below

0
On

Not sure exactly what problem you have with filter in the Retool javascript. I can confirm that it does indeed work. You need to ensure that you are calling filter on the array, and not the query object.

So in retool it is usually:

queryResult.data.filter()

not

queryResult.filter()