Search for any tag - ideally one with a lot of results - e.g. "Storbyferie"
Immediately click on "reset/nulstil" button
Expected Behaviour
Only the results for the homepage search are shown
Actual Behaviour
Results from the old "storbyferie" search are included in the results displayed
Further Information
This is a result of the search id not being returned from the graphql endpoint, which means that when this comparison is performed with the search id from results and the saved id then it will always resolve to true (since resultId === '') and any results received will be loaded into the feed, irrespective of their provenance.
To fix we need to ensure that the search id is correctly returned by the graphql endpoint.
Steps to reproduce
Expected Behaviour
Only the results for the homepage search are shown
Actual Behaviour
Results from the old "storbyferie" search are included in the results displayed
Further Information
This is a result of the search id not being returned from the graphql endpoint, which means that when this comparison is performed with the search id from results and the saved id then it will always resolve to true (since
resultId === ''
) and any results received will be loaded into the feed, irrespective of their provenance.To fix we need to ensure that the search id is correctly returned by the graphql endpoint.