Merge pull request #4027 from matrix-org/travis/fix-room-list

Don't crash immediately if the room directory chunk is null/empty
pull/21833/head
Travis Ralston 2020-02-04 09:36:12 +00:00 committed by GitHub
commit bf9d5b7f01
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -155,7 +155,7 @@ export default createReactClass({
this.nextBatch = data.next_batch;
this.setState((s) => {
s.publicRooms.push(...data.chunk);
s.publicRooms.push(...(data.chunk || []));
s.loading = false;
return s;
});