Fix bug: baking error did not reset baking status

This commit is contained in:
toby 2017-04-23 13:14:59 -04:00
parent a13e2468db
commit 21c0fed833

View file

@ -124,14 +124,14 @@ App.prototype.bake = async function(step) {
this.handleError(err); this.handleError(err);
} }
this.setBakingStatus(false);
if (!response) return; if (!response) return;
if (response.error) { if (response.error) {
this.handleError(response.error); this.handleError(response.error);
} }
this.setBakingStatus(false);
this.options = response.options; this.options = response.options;
this.dishStr = response.type === "html" ? Utils.stripHtmlTags(response.result, true) : response.result; this.dishStr = response.type === "html" ? Utils.stripHtmlTags(response.result, true) : response.result;
this.progress = response.progress; this.progress = response.progress;