mirror of
https://github.com/aclindsa/moneygo.git
synced 2025-07-01 12:08:37 -04:00
Actually dispatch errors
This commit is contained in:
@ -38,7 +38,7 @@ function search(searchString, searchType, limit) {
|
||||
var e = new Error();
|
||||
e.fromJSON(data);
|
||||
if (e.isError()) {
|
||||
ErrorActions.serverError(e);
|
||||
dispatch(ErrorActions.serverError(e));
|
||||
} else if (data.securities == null) {
|
||||
dispatch(securityTemplatesSearched(searchString, searchType, new Array()));
|
||||
} else {
|
||||
@ -51,7 +51,7 @@ function search(searchString, searchType, limit) {
|
||||
}
|
||||
},
|
||||
error: function(jqXHR, status, error) {
|
||||
ErrorActions.ajaxError(e);
|
||||
dispatch(ErrorActions.ajaxError(e));
|
||||
}
|
||||
});
|
||||
};
|
||||
|
Reference in New Issue
Block a user