I\'m trying to create a search bar that filters out a set of data. The search function I made uses several states to filter results. When the search bar and results page are