Commit 358fc3aa authored by Natalia Tepluhina's avatar Natalia Tepluhina

Merge branch 'fix-callout-undefined-error' into 'master'

Add fallback in case data is not defined

See merge request gitlab-org/gitlab!60118
parents 4a8b7d09 086a6da5
...@@ -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