Trying to filter and update the results

I am trying to filter the results by boolean field and date before the results are shown to the customers.
The problem is the items found (nbhits) does not update. Lets say I am filtering enabled = 0 and there would normally be no items (nbHits) is showing some results.

transformItems(items) {
        
        return items.filter(item => {
          return (item.enabled === 0 || item.time_of_use_unix < moment().unix()) ? null : item;
        });
      },

The number of results do not match the items shown. Would be nice if someone could help me out.

Solved it with <ais-configure :filters="filters" />