numo-labs / isearch-ui

:yellow_heart: :mag: The ui for inspirational search!
GNU General Public License v3.0
7 stars 7 forks source link

Search ID is not saved by client meaning old search results get into stream #457

Closed lennym closed 8 years ago

lennym commented 8 years ago

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.