mirror of
https://github.com/vector-im/element-web.git
synced 2025-08-23 07:21:22 +02:00
Merge pull request #6047 from robintown/fix-notification-panel
Fix crash on opening notification panel
This commit is contained in:
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…
x
Reference in New Issue
Block a user