Skip to content

ConsolePanel should not render if there is no session #1684

@bmingles

Description

@bmingles

Description

The ConsolePanel component has a connect prop to sessionWrapper. If this prop is undefined / null, the component crashes when attempting to destructure the prop with an error "Cannot destructure property 'config' of 'sessionWrapper'". This component should not be rendered at all if sessionWrapper is undefined.

Steps to reproduce

  • Run DHC such that it requires PSK for login
  • Login
  • Open a file (this seems to be necessary to fail the logout. See Open file blocks logout #1685 for related issue)
  • Logout

Expected results

There should be no console errors. Console should not be rendered if no session is available

Actual results

On login there is a console error "Cannot destructure property 'config' of 'sessionWrapper'". On logout, the same error occurs.

Additional details and attachments

image

Versions

Engine Version: 0.31.0-SNAPSHOT
Web UI Version: 0.56.0
Java Version: 21.0.1
Barrage Version: 0.6.0

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions