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
While fetching the data from notion, if the data is null or empty, there currently aren't any checks to gracefully handle these issues, which breaks the site. Add check on data to validate it before using a map, filter etc finc on them.
Info
Some of such functions are in utils such as solution.js and contributor.js. Check for more if present in the repo 🙂 .
Issue
The text was updated successfully, but these errors were encountered:
Thanks @Chaitanya674 - please go ahead. As for what to show if the data is null - I guess it depends on what is missing. I would propose that the first thing to do is to look through the codebase and enumerate the cases here in this issue, possibly as a table together with a proposal how to gracefully handle the missing data, i.e., what to show instead.
We can then discuss that proposal before you start implementing it.
Description
While fetching the data from notion, if the data is null or empty, there currently aren't any checks to gracefully handle these issues, which breaks the site. Add check on data to validate it before using a
map
,filter
etc finc on them.Info
Some of such functions are in
utils
such assolution.js
andcontributor.js
. Check for more if present in the repo 🙂 .Issue
The text was updated successfully, but these errors were encountered: