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 {
callouts: {
query: getUserCallouts,
update(data) {
return data?.currentUser?.callouts?.nodes.map((callout) => callout.featureName);
return data?.currentUser?.callouts?.nodes.map((callout) => callout.featureName) || [];
},
error(err) {
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