Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adds error condition to canvas middleware #45

Merged
merged 2 commits into from
Feb 28, 2017
Merged

adds error condition to canvas middleware #45

merged 2 commits into from
Feb 28, 2017

Conversation

dittonjs
Copy link
Contributor

fixes bug causing promise to not resolve and not dispatch to reducer is there was an error during the canvas request.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 99.88% when pulling bdf0aef on canvas_error into 930f718 on master.

}); // Dispatch the new data
}).catch((error) => {
store.dispatch({
type : action.canvas.type + DONE,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Even Justin says not to do this. Align it if you must, but don't use the colon to align it. Align with spaces only please.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 99.88% when pulling bf70345 on canvas_error into 930f718 on master.

Copy link
Collaborator

@bfcoder bfcoder left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. .catch is the correct method to use.

@dittonjs dittonjs merged commit 05ec8dd into master Feb 28, 2017
@dittonjs dittonjs deleted the canvas_error branch February 28, 2017 17:24
jbasdf pushed a commit that referenced this pull request Mar 27, 2018
* upgrade to react 16 and react router 4

* remove our eslint package

* fixes specs
jbasdf added a commit that referenced this pull request Mar 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants