mirror of https://github.com/vector-im/riot-web
Merge pull request #6047 from robintown/fix-notification-panel
Fix crash on opening notification panelpull/21833/head
commit
9182bff86e
|
@ -473,7 +473,7 @@ export default class MessagePanel extends React.Component {
|
|||
}
|
||||
|
||||
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() {
|
||||
|
|
Loading…
Reference in New Issue