The code in your first post does not exactly match the code in your screen shot. But they both have a similar issue. The second time you do the filtering you need to work with the previously filter array. The filtered array does not have a query object or a records object.
The new forum software does not let me type code properly on my phone, and won’t let me edit pasted code.
In this line, remove the ".records"
let filteredRecords = filteredConcurrents.records.filter(