fix: added nullsafe operator to patch home error #85
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I am experiencing an issue visiting the page jsonvisio.com using firefox developer edition 104.0b6. It appears the initialization to display the sponsors.users array on useConfig.tsx introduced on commit
ae667d4a3b6db200055bfd5401c704aef39784f5
with message logadd sponsors section
is failing for this firefox edition. This is the screenshot.Error log on console:
I copied only the relevant error messages. When reproducing on my local main branch, I found the error was on the line I'm changing on this commit.
After creating this patch, I visited jsonvisio.com using firefox 103.0.1 version, and it works. I think this is an issue while loading the default data for sponsors in the latest firefox edition. After putting some debug lines on my local machine, and revert my changes, the issue was gone. This is patch, because I am adding a nullsafe operator to an object attribute that should be initialized as an empty array. When debugging the issue, I found the value of sponsors was:
Expected: