mirror of
https://github.com/element-hq/element-web
synced 2024-11-28 04:21:57 +03:00
Don't crash if the value of a room tag is null
We were checking that the order was not null, but not the object itself.
This commit is contained in:
parent
2816175393
commit
54620591cc
1 changed files with 2 additions and 2 deletions
|
@ -284,8 +284,8 @@ class RoomListStore extends Store {
|
|||
if (optimisticRequest && roomB === optimisticRequest.room) metaB = optimisticRequest.metaData;
|
||||
|
||||
// Make sure the room tag has an order element, if not set it to be the bottom
|
||||
const a = metaA.order;
|
||||
const b = metaB.order;
|
||||
const a = metaA ? metaA.order : undefined;
|
||||
const b = metaB ? metaB.order : undefined;
|
||||
|
||||
// Order undefined room tag orders to the bottom
|
||||
if (a === undefined && b !== undefined) {
|
||||
|
|
Loading…
Reference in a new issue