Commit cb9ac5a6 authored by Phil Hughes's avatar Phil Hughes

Merge branch '34640-fix-epic-search-dropdown' into 'master'

Force network search instead of cached search in Epics dropdown

Closes #34640

See merge request gitlab-org/gitlab!29033
parents 2dc9081f 35fe2328
...@@ -101,7 +101,7 @@ export default { ...@@ -101,7 +101,7 @@ export default {
*/ */
searchQuery(value) { searchQuery(value) {
if (value) { if (value) {
if (!this.groupEpics.length) this.fetchEpics(this.searchQuery); this.fetchEpics(this.searchQuery);
} else { } else {
this.fetchEpics(); this.fetchEpics();
} }
......
...@@ -82,7 +82,6 @@ describe('EpicsSelect', () => { ...@@ -82,7 +82,6 @@ describe('EpicsSelect', () => {
}); });
it('should call action `fetchEpics` with `searchQuery` when value is set and `groupEpics` is empty', () => { 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'); wrapper.vm.$store.dispatch('setSearchQuery', 'foo');
return wrapper.vm.$nextTick(() => { 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