Skip to content
Snippets Groups Projects
Commit 4399e646 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

promise reject is reported to the user

parent c7125460
No related branches found
No related tags found
1 merge request!70Resolve "Get drugs by target"
......@@ -37,7 +37,7 @@ AbstractPanel.prototype._createEventHandlers = function() {
searchButton.onclick = searchByQuery;
searchInput.onkeypress = function(event) {
if (event.keyCode === 13) {
searchByQuery();
return searchByQuery().then(null, GuiConnector.alert);
}
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment