Merge pull request #4027 from matrix-org/travis/fix-room-list
Don't crash immediately if the room directory chunk is null/empty
This commit is contained in:
commit
bf9d5b7f01
1 changed files with 1 additions and 1 deletions
|
@ -155,7 +155,7 @@ export default createReactClass({
|
||||||
|
|
||||||
this.nextBatch = data.next_batch;
|
this.nextBatch = data.next_batch;
|
||||||
this.setState((s) => {
|
this.setState((s) => {
|
||||||
s.publicRooms.push(...data.chunk);
|
s.publicRooms.push(...(data.chunk || []));
|
||||||
s.loading = false;
|
s.loading = false;
|
||||||
return s;
|
return s;
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue