import Ember from 'ember';

export default Ember.Component.extend({

    init () {
        this._super(...arguments);
        this.set("query", this.get("parameters").query);
    },

    actions: {

        transitionToFacet(parameter) {
            let queryParams = {};
            queryParams["query"] = parameter;
            this.attrs.transitionToFacet(this.get('item.facetDash'), queryParams);
        }

    }

});

import Ember from 'ember';

export default Ember.Component.extend({

    init () {
        this._super(...arguments);
        this.set("query", this.get("parameters").query);
    },

    actions: {

        transitionToFacet(parameter) {
            let queryParams = {};
            queryParams["query"] = parameter;
            queryParams["page"] = undefined;
            this.attrs.transitionToFacet(this.get('item.facetDash'), queryParams);
        }

    }

});

Reset query parameter for page when hitting search
Reset query parameter for page when hitting search
