Permalink
Browse files

fix reset search after 0 results

  • Loading branch information...
icewind1991 committed Feb 13, 2017
1 parent 0e91b2f commit 50bec8ecf7edd81cfb96a35089283c0d879b41f3
Showing with 2 additions and 0 deletions.
  1. +2 −0 js/Providers/LogProvider.js
@@ -17,6 +17,7 @@ export class LogProvider extends EventEmitter {
}
reset () {
this.hasMore = true;
this.limit = this.baseLimit;
this.cachedEntries = [];
this.loading = false;
@@ -29,6 +30,7 @@ export class LogProvider extends EventEmitter {
set query (newQuery) {
if (newQuery !== this.searchQuery) {
this.searchQuery = newQuery;
console.log(newQuery);
this.reset();
this.load();
}

0 comments on commit 50bec8e

Please sign in to comment.