Merge pull request '#2331 Refresh data on onFilter() when source is "state"' (#346) from 2331-delete_index_fix into dev
gitea/salix/pipeline/head This commit looks good Details

Reviewed-on: #346
Reviewed-by: Carlos Jimenez <carlosjr@verdnatura.es>
This commit is contained in:
Carlos Jimenez Ruiz 2020-08-10 08:45:39 +00:00
commit 872fbea808
1 changed files with 1 additions and 1 deletions

View File

@ -189,7 +189,7 @@ export default class Searchbar extends Component {
} }
doSearch(filter, source) { doSearch(filter, source) {
if (filter === this.filter) return; if (filter === this.filter && source != 'state') return;
let promise = this.onSearch({$params: filter}); let promise = this.onSearch({$params: filter});
promise = promise || this.$q.resolve(); promise = promise || this.$q.resolve();
promise.then(data => this.onFilter(filter, source, data)); promise.then(data => this.onFilter(filter, source, data));