Skip to content

Commit

Permalink
MMT-3923: Fix undifined 'extensions'
Browse files Browse the repository at this point in the history
  • Loading branch information
htranho committed Dec 12, 2024
1 parent f6e0159 commit 347c892
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions static/src/js/components/ErrorBoundary/ErrorBoundary.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ class ErrorBoundary extends React.Component {
let errorMessage = error.message
// Check to see if it is a known intermittent error from EDL (MMT-3923)
if (error.graphQLErrors
&& (error.graphQLErrors[0].extensions?.code === 'INTERNAL_SERVER_ERROR')
&& error.graphQLErrors[0].path?.includes('acl')
&& error.graphQLErrors[0].path?.includes('groups')) {
&& (error.graphQLErrors[0]?.extensions?.code === 'INTERNAL_SERVER_ERROR')
&& error.graphQLErrors[0]?.path?.includes('acl')
&& error.graphQLErrors[0]?.path?.includes('groups')) {
errorMessage = 'Error retrieving groups. Please refresh'
}

Expand Down

0 comments on commit 347c892

Please sign in to comment.