Function filtering DB doesn't work!

I don’t recognize any difference from my code.
export function works. my problem is that setFilter fuction doesn’t work.