cds-snc / resources-ressources

Learning Resources / Ressources d'apprentissage
MIT License
3 stars 1 forks source link

Error: Cannot read properties of undefined (reading 'includes') #305

Closed anikbrazeau closed 1 year ago

anikbrazeau commented 2 years ago

Describe the bug Shortly after redeploying staging, I seem to encounter an error when trying to access resources. Wondering if this is repeatable? And if it's something other users might experience?

To Reproduce Steps to reproduce the behavior:

  1. Go to staging and navigate to X resource
  2. Go to Contentful, publish a new change to X resource
  3. Go to AWS, redeploy the staging site
  4. See error on staging when trying to navigate the site

Expected behavior Is this expected? Is there a way to prevent it?

Screenshots

When clicking on "Establishing team rituals" from the "Agile" topic page:

Screenshot 2022-10-31 at 1 01 56 PM

Desktop (please complete the following information):

anikbrazeau commented 2 years ago

This just happened again -- when clicking on "Human-centred design" from the homepage.

Screenshot 2022-10-31 at 4 21 47 PM

anikbrazeau commented 2 years ago

@daine, as per Friday's request, I tried testing to see if this was still happening... but the build failed so wasn't able to assess whether it's still an issue:

Screenshot 2022-11-07 at 8 31 30 AM
daine commented 1 year ago

@anikbrazeau I've done lots of work on the code that should get rid of that includes issue. Definitely bug squashing. I don't think this is an issue anymore but please confirm 🙏🏼

anikbrazeau commented 1 year ago

Yay! Tested this on the new alpha domain and it does not seem to be an issue anymore! 👍

anikbrazeau commented 1 year ago

Closing this issue as it appears to be resolved.

daine commented 1 year ago

Update: renaming title of this ticket as it the issue had nothing to do with redeployments