Skip to content

RoomDirectory: can't access property "trim", this.state.filterString is null #17853

@jaller94

Description

@jaller94

Description

Peek 2021-07-01 10-40

can't access property "trim", this.state.filterString is null RoomDirectory.tsx:413 

Steps to reproduce

  1. Be logged into Element Web.
  2. Open "Explore rooms".
  3. Type anything into the search. (This search term must not have any results on the server you switch to in step 3!)
  4. Change the server in the Server dropdown.
  5. Click the red X in the search term input.

Describe how what happens differs from what you expected.

A JavaScript error occurs and the "Explore rooms" modal closes itself.

Logs being sent: yes

Version information

  • Platform: web

For the web app:

  • Browser: Mozilla Firefox Dev Edition 90.0b4
  • OS: Manjaro Linux (Arch repo)
  • URL: staging.element.io 1.7.32-rc.1

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions