You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is the mystery bug that appeared seemingly out of nowhere! The app was working fine and then the next time I tested it, this bug (among others) appeared even though I never changed the code!
Description of bug:
This bug only occurs the first time that updateCurrentGistView runs -- in other words, when creating the initial Gist when starting up the game.
“Uncaught TypeError: Cannot read property ‘url’ of undefined” at line 527 of local.js
Ideas for debugging:
After refactoring, check the flowchart and state diagram to see if anything seems wrong with the order of events.
Test the Gist creation in isolation (both for debugging and to build up more modular sample code for myself to practice with and build off of later)
Check if the GitHub API has changed since my last commit!
The text was updated successfully, but these errors were encountered:
LearningNerd
changed the title
Fix bug related to creating initial Gist
Error thrown when client calls updateCurrentGistView the first time to create initial Gist
Jun 28, 2017
Close#8, add updateCurrentGistView condition.
- Client-side code now checks if turnData.gist exists before updating
the Gist view UI, inside handleUpdateState() and handleTurnChange()
This is the mystery bug that appeared seemingly out of nowhere! The app was working fine and then the next time I tested it, this bug (among others) appeared even though I never changed the code!
Description of bug:
This bug only occurs the first time that
updateCurrentGistView
runs -- in other words, when creating the initial Gist when starting up the game.“Uncaught TypeError: Cannot read property ‘url’ of undefined” at line 527 of local.js
Ideas for debugging:
After refactoring, check the flowchart and state diagram to see if anything seems wrong with the order of events.
Test the Gist creation in isolation (both for debugging and to build up more modular sample code for myself to practice with and build off of later)
Check if the GitHub API has changed since my last commit!
The text was updated successfully, but these errors were encountered: