mirror of
https://github.com/stolksdorf/homebrewery.git
synced 2025-12-20 13:31:30 +00:00
ESLint reformatting
This commit is contained in:
@@ -62,7 +62,7 @@ const EditPage = createClass({
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
this.setState((prevState) => ({
|
this.setState((prevState)=>({
|
||||||
htmlErrors : Markdown.validate(prevState.brew.text)
|
htmlErrors : Markdown.validate(prevState.brew.text)
|
||||||
}));
|
}));
|
||||||
|
|
||||||
@@ -128,7 +128,7 @@ const EditPage = createClass({
|
|||||||
save : function(){
|
save : function(){
|
||||||
if(this.debounceSave && this.debounceSave.cancel) this.debounceSave.cancel();
|
if(this.debounceSave && this.debounceSave.cancel) this.debounceSave.cancel();
|
||||||
|
|
||||||
this.setState((prevState) => ({
|
this.setState((prevState)=>({
|
||||||
isSaving : true,
|
isSaving : true,
|
||||||
errors : null,
|
errors : null,
|
||||||
htmlErrors : Markdown.validate(prevState.brew.text)
|
htmlErrors : Markdown.validate(prevState.brew.text)
|
||||||
|
|||||||
@@ -22,8 +22,8 @@ const PrintPage = createClass({
|
|||||||
|
|
||||||
componentDidMount : function() {
|
componentDidMount : function() {
|
||||||
if(this.props.query.local){
|
if(this.props.query.local){
|
||||||
this.setState((prevState, prevProps) => ({
|
this.setState((prevState, prevProps)=>({
|
||||||
brewText: localStorage.getItem(prevProps.query.local)
|
brewText : localStorage.getItem(prevProps.query.local)
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user