You have to change your filter function. You are returning two values but it stops on first return.

Change

return !powers.includes(this.dataset.id) and return !grills.includes(this.dataset.id)

to

return !powers.includes(this.dataset.id) && !grills.includes(this.dataset.id);

I hope this will solve you problem.

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top