Commit 35fe2328 authored by Kushal Pandya's avatar Kushal Pandya

Force network search instead of cached search

parent 20b5232c
......@@ -101,7 +101,7 @@ export default {
*/
searchQuery(value) {
if (value) {
if (!this.groupEpics.length) this.fetchEpics(this.searchQuery);
this.fetchEpics(this.searchQuery);
} else {
this.fetchEpics();
}
......
......@@ -82,7 +82,6 @@ describe('EpicsSelect', () => {
});
it('should call action `fetchEpics` with `searchQuery` when value is set and `groupEpics` is empty', () => {
wrapper.vm.$store.dispatch('receiveEpicsSuccess', []);
wrapper.vm.$store.dispatch('setSearchQuery', 'foo');
return wrapper.vm.$nextTick(() => {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment