import Ember from 'ember';

export default Ember.Route.extend({
    queryParams: {
        q: { refreshModel: true },
        page: { refreshModel: true },
        sort: { refreshModel: true },
    },

    model(params) {
        return this.store.query('crate', params);
    },
});

@@ -215,16 +215,100 @@
 rams) %7B%0A
+        if (params.q !== null) %7B%0A            params.q = params.q.trim();%0A        %7D%0A%0A
         

Trim white spaces from search term