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

Fix 'cannot read property "iso"' crash (issue #80) #233

Merged
merged 1 commit into from
Mar 1, 2019
Merged

Fix 'cannot read property "iso"' crash (issue #80) #233

merged 1 commit into from
Mar 1, 2019

Conversation

rchl
Copy link
Collaborator

@rchl rchl commented Feb 26, 2019

On visiting route that is not defined (404), and module's defaultLocale
is not defined (default), the code in main.js would set app.i18n.locale
to null and when the seo code would run, it would crash on trying to
access property iso of it. So don't allow seo code to run when locale
is not defined.

On visiting route that is not defined (404), and module's `defaultLocale`
is not defined (default), the code in main.js would set `app.i18n.locale`
to null and when the seo code would run, it would crash on trying to
access property `iso` of it. So don't allow seo code to run when locale
is not defined.
@codecov
Copy link

codecov bot commented Feb 26, 2019

Codecov Report

Merging #233 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@          Coverage Diff          @@
##           master   #233   +/-   ##
=====================================
  Coverage     100%   100%           
=====================================
  Files           2      2           
  Lines           4      4           
=====================================
  Hits            4      4

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update fe6b131...de6e7dd. Read the comment docs.

@paulgv paulgv merged commit 6cb2fa1 into nuxt-modules:master Mar 1, 2019
@paulgv
Copy link
Collaborator

paulgv commented Mar 1, 2019

Thanks @rchl !

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

2 participants