We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a520df0 + 3c4cab5 commit 29d5b86Copy full SHA for 29d5b86
packages/react-renderer-demo/src/components/notification-panel.js
@@ -41,6 +41,10 @@ const getNotifications = () => {
41
return fetch(`https://data-driven-forms.firebaseio.com/notifications.json${query}`)
42
.then((data) => data.json())
43
.then((data) => {
44
+ if (!data) {
45
+ return [];
46
+ }
47
+
48
if (typeof data !== 'object') {
49
return [];
50
}
0 commit comments