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:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user