Skip to content

Commit a75acae

Browse files
committed
[grid] FixingNPE on the Grid UI which was breaking E2E tests
1 parent d387c91 commit a75acae

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

javascript/grid-ui/src/screens/Sessions/Sessions.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ class Sessions extends React.Component<SessionsProps, SessionsState> {
8282
</ApolloConsumer>
8383
)
8484
}
85-
const {loading, error, data} = this.state;
85+
const {loading, error, data} = this.state ?? {loading: false, error: "No connection to the Grid", data: []};
8686

8787
if (loading) {
8888
return (

0 commit comments

Comments
 (0)