mirror of https://github.com/vector-im/riot-web
Use an arrow function to allow `this`
This was causing `TypeError: Cannot read property '_getEmptyContent' of undefined` for those with custom tags.pull/21833/head
parent
d4041777f9
commit
49b22fb6c6
|
@ -578,7 +578,7 @@ module.exports = React.createClass({
|
|||
onHeaderClick={ self.onSubListHeaderClick }
|
||||
onShowMoreRooms={ self.onShowMoreRooms } />
|
||||
|
||||
{ Object.keys(self.state.lists).map(function(tagName) {
|
||||
{ Object.keys(self.state.lists).map((tagName) => {
|
||||
if (!tagName.match(/^(m\.(favourite|lowpriority)|im\.vector\.fake\.(invite|recent|direct|archived))$/)) {
|
||||
return <RoomSubList list={ self.state.lists[tagName] }
|
||||
key={ tagName }
|
||||
|
|
Loading…
Reference in New Issue