Skip to content
This repository has been archived by the owner on Oct 1, 2019. It is now read-only.

Commit

Permalink
Clear search results if there hasn't been found anything
Browse files Browse the repository at this point in the history
  • Loading branch information
artkravchenko committed Mar 28, 2017
1 parent 86db0b0 commit e1b596f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/triggers/index.js
Expand Up @@ -815,6 +815,7 @@ export class ActionsTrigger {
const response = await this.client.search(query);
this.dispatch(a.search.setSearchResults(response, more));
} catch (e) {
this.dispatch(a.search.clearSearchResults(more.searchId));
this.dispatch(a.messages.addError(e.message));
}
}
Expand Down

0 comments on commit e1b596f

Please sign in to comment.