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

Display error for bad prop template #1158

Merged
merged 2 commits into from
Aug 2, 2019

Conversation

ndushay
Copy link
Contributor

@ndushay ndushay commented Aug 2, 2019

Fixes #1122.

Before

note no display of error except in console ... (you can tell I clicked the Add button because it's darker blue ...)

1122 before

After

1122 after

@ndushay ndushay added this to Needs Review in Sinopia Work-Cycle One via automation Aug 2, 2019
} else {
// not sure this error is ever surfaced anywhere, but we do need to trap for undefined resourceTemplate
// possibly will be surfaced when issue #1148 is addressed
this.addError(reduxPath, labelPath, `unable to retrieve ${resourceTemplateId} from local store`)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

needed to add this else block to avoid "resourceTemplate undefined" error, which wasn't even being trapped for.

@ndushay ndushay force-pushed the display-error-for-bad-prop-template branch from 7dfb0f8 to 8136aae Compare August 2, 2019 21:09
@ndushay ndushay requested a review from jermnelson August 2, 2019 21:10
Sinopia Work-Cycle One automation moved this from Needs Review to In Progress Aug 2, 2019
@jermnelson jermnelson merged commit d688793 into master Aug 2, 2019
Sinopia Work-Cycle One automation moved this from In Progress to Done Aug 2, 2019
@jermnelson jermnelson deleted the display-error-for-bad-prop-template branch August 2, 2019 22:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

Display Error Message for edge case in PropertyComponent
2 participants