Commit 086a6da5 authored by Sarah GP's avatar Sarah GP

Add fallback in case data is not defined

parent 21b2afdd
...@@ -69,7 +69,7 @@ export default { ...@@ -69,7 +69,7 @@ export default {
callouts: { callouts: {
query: getUserCallouts, query: getUserCallouts,
update(data) { update(data) {
return data?.currentUser?.callouts?.nodes.map((callout) => callout.featureName); return data?.currentUser?.callouts?.nodes.map((callout) => callout.featureName) || [];
}, },
error(err) { error(err) {
reportToSentry( reportToSentry(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment