Trouble filtering dataset using url query parameter

I actually just fixed it right before I saw this …

I added a window.onChange function that ran the whole thing again with a new variable; it works perfectly now …

wixLocation.onChange( (location) => {
let queryValue2 = wixLocation.query;
$w( ‘#dataset1’ ).setFilter(wixData.filter().contains( ‘title’ , queryValue2.category));
} );