setFilters deletes table data


I have some table data loaded from a REST API call and I would like to dynamically set filters using the setFilters.

If I amend the table using the filter button, then it works as expected and filtered rows are visible.

However, when setting the filter dynamically with the code below, it sets the filter (blue dot on filter icon) but seems to clear the table data at the same time so no results are shown?

{{[{columnName:"variant_id", operator:"equals" filterValue: 12674797 }]}}

I've checked things like update on state change etc and all set to false.

i'm sure it's something silly - any help greatly appreciated.

1 Like

Hi @tommyc1989, Are these variant_ids strings by any chance?