1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-07-22 18:41:57 +03:00
This commit is contained in:
David Baker
2017-07-10 14:07:16 +01:00
parent 696c72be2b
commit 49ca29e422

View File

@ -147,8 +147,8 @@ export default React.createClass({
let featuredRooms = null;
if (summary.rooms_section.rooms.length > 0) {
let defaultCategoryRooms = [];
let categoryRooms = {};
const defaultCategoryRooms = [];
const categoryRooms = {};
summary.rooms_section.rooms.forEach((r) => {
if (r.category_id === null) {
defaultCategoryRooms.push(r);