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

Undefined Variables into index.js causes Rendering Errors #140

Open
gustavopvasconcellos opened this issue Apr 2, 2019 · 0 comments
Open

Comments

@gustavopvasconcellos
Copy link
Contributor

Describe the bug

When access the department, category or search page, in some cases, the categories variable is undefined and its cause a rendering error. The error occours in most the case on annonimous mode of browser. I belive that error happens when the GraphQL Query doesn't load the information of CategoriesTrees in time and the data doesn't cached.

Possible Solution

Add a condition to blocks execution of the script, e.g typeof categoriesTrees === "undefined" ? /* Loading / : / Execute */

Screenshots

image

Steps to Reproduce (for bugs)

  1. Go to https://shop.eicom.org a online store using StoreBuilder and all of store-theme App components
  2. Go to a department or category page.
  3. Open the DevTools (Inspect the page) and check the "console" tab to verify any errors
  4. This error can be more viewed in a Safari Browser.

Your Environment

  • OS: Mac Mojave, Mac High Sierra, Windows 10.
  • Browser: Safari 12, Safari 11.1, Chrome 75
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

No branches or pull requests

1 participant