cartodb/lib/assets/javascripts/new-dashboard/router/hooks/update-search-params.js
2020-06-15 10:58:47 +08:00

7 lines
198 B
JavaScript

import store from 'new-dashboard/store';
export default function updateSearchParams (to, _, next) {
store.dispatch('search/doSearch', { query: to.params.query, tag: to.params.tag });
next();
}