Skip to content

Commit

Permalink
[grid] FixingNPE on the Grid UI which was breaking E2E tests
Browse files Browse the repository at this point in the history
  • Loading branch information
diemol committed Feb 21, 2021
1 parent d387c91 commit a75acae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion javascript/grid-ui/src/screens/Sessions/Sessions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ class Sessions extends React.Component<SessionsProps, SessionsState> {
</ApolloConsumer>
)
}
const {loading, error, data} = this.state;
const {loading, error, data} = this.state ?? {loading: false, error: "No connection to the Grid", data: []};

if (loading) {
return (
Expand Down

0 comments on commit a75acae

Please sign in to comment.