diff --git a/app/components/search-box.gjs b/app/components/search-box.gjs index 83df5f8..77302ba 100644 --- a/app/components/search-box.gjs +++ b/app/components/search-box.gjs @@ -84,7 +84,7 @@ export default class SearchBoxComponent extends Component { event.preventDefault(); if (!this.query) return; - let queryParams = { q: this.query, selected: null }; + let queryParams = { q: this.query, selected: null, category: null }; if (this.mapUi.currentCenter) { const { lat, lon } = this.mapUi.currentCenter; @@ -116,6 +116,7 @@ export default class SearchBoxComponent extends Component { lat: place.lat, lon: place.lon, selected: null, + category: null, }, }); } diff --git a/tests/integration/components/search-box-test.gjs b/tests/integration/components/search-box-test.gjs index 5631ca4..2f53aa1 100644 --- a/tests/integration/components/search-box-test.gjs +++ b/tests/integration/components/search-box-test.gjs @@ -100,7 +100,7 @@ module('Integration | Component | search-box', function (hooks) { .dispatchEvent(new Event('submit', { bubbles: true, cancelable: true })); assert.verifySteps([ - 'transitionTo: search {"queryParams":{"q":"berlin","selected":null,"lat":"52.5200","lon":"13.4050"}}', + 'transitionTo: search {"queryParams":{"q":"berlin","selected":null,"category":null,"lat":"52.5200","lon":"13.4050"}}', ]); });