0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-13 06:32:39 +00:00

Fixed bug where new page loaded null brews sometimes

This commit is contained in:
Scott Tolksdorf
2017-01-12 01:25:30 -05:00
parent 07f249b23e
commit 894e345a44
3 changed files with 7 additions and 9 deletions

View File

@@ -14,13 +14,6 @@ const NewPage = require('./pages/newPage/newPage.jsx');
//const ErrorPage = require('./pages/errorPage/errorPage.jsx');
const PrintPage = require('./pages/printPage/printPage.jsx');
const mapObject = (names, obj) => {
return _.reduce(names, (r, name) => {
if(obj[name]) r[name] = obj[name];
return r;
}, {});
};
let Router;
const Homebrew = React.createClass({
getDefaultProps: function() {