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

Check if asru exists before checking length #75

Merged
merged 1 commit into from
Apr 10, 2019

Conversation

lvnhmd
Copy link
Contributor

@lvnhmd lvnhmd commented Apr 10, 2019

No description provided.

<h3>Inspector for:</h3>
{ this.renderAsruAssociation(model.asru) }
</Fragment>
}
{
model.asruLicensing && model.asru.length && <Fragment>
model.asruLicensing && model.asru && model.asru.length && <Fragment>
Copy link
Contributor

Choose a reason for hiding this comment

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

Where we have (mildly) complex conditions like this that are used in multiple places then it's probably worth abstracting them into consts.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

cool, I will do it on the next PR

@lennym lennym merged commit 90e1382 into master Apr 10, 2019
@lennym lennym deleted the bugfix/Check-if-asru-exist-before-checking-length branch April 10, 2019 13:08
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.

2 participants