Fixed bug where new page was storing null brews

This commit is contained in:
Scott Tolksdorf
2017-01-28 16:38:51 -05:00
parent c470bed591
commit 97c0443c76
+1
View File
@@ -30,6 +30,7 @@ const Store = flux.createStore({
State.brew = brew; State.brew = brew;
}, },
UPDATE_BREW_TEXT : (brewText) => { UPDATE_BREW_TEXT : (brewText) => {
console.log(State);
State.brew.text = brewText; State.brew.text = brewText;
State.errors = Markdown.validate(brewText); State.errors = Markdown.validate(brewText);
}, },