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

Correct ternary condition on page getter #106

Merged
merged 2 commits into from
Mar 2, 2020
Merged

Correct ternary condition on page getter #106

merged 2 commits into from
Mar 2, 2020

Conversation

gradedcatfood
Copy link
Contributor

@gradedcatfood gradedcatfood commented Feb 23, 2020

I believe this ternary is incorrect and was causing an issue when loading page content with the Page.vue component.

Screen Shot 2020-02-23 at 10 32 25 AM

Flipped the condition to come first then return the 0th index or false.

Please let me know if this is helpful.

Thanks

Copy link
Owner

@EvanAgee EvanAgee left a comment

Choose a reason for hiding this comment

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

Thanks, appreciate it!

@EvanAgee EvanAgee merged commit fe0c4f8 into EvanAgee:master Mar 2, 2020
schuhwerk pushed a commit to schuhwerk/vuejs-mapbox-wordpress-theme-starter that referenced this pull request Nov 13, 2023
* Correct ternary condition on page getter

* Correct ternary condition to check for 0 index
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