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; let featuredRooms = null;
if (summary.rooms_section.rooms.length > 0) { if (summary.rooms_section.rooms.length > 0) {
let defaultCategoryRooms = []; const defaultCategoryRooms = [];
let categoryRooms = {}; const categoryRooms = {};
summary.rooms_section.rooms.forEach((r) => { summary.rooms_section.rooms.forEach((r) => {
if (r.category_id === null) { if (r.category_id === null) {
defaultCategoryRooms.push(r); defaultCategoryRooms.push(r);