Fix crash on opening notification panel
The check for pending edits needed a null guard, since the notification panel uses MessagePanel but is not associated with a specific room. Signed-off-by: Robin Townsend <robin@robin.town>
This commit is contained in:
parent
f67ba57da5
commit
d3f1754dfd
1 changed files with 1 additions and 1 deletions
|
@ -473,7 +473,7 @@ export default class MessagePanel extends React.Component {
|
||||||
}
|
}
|
||||||
|
|
||||||
get _roomHasPendingEdit() {
|
get _roomHasPendingEdit() {
|
||||||
return localStorage.getItem(`mx_edit_room_${this.props.room.roomId}`);
|
return this.props.room && localStorage.getItem(`mx_edit_room_${this.props.room.roomId}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
_getEventTiles() {
|
_getEventTiles() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue