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);