From 21c0fed8339eb2921e456f2dc298920eff3d28c5 Mon Sep 17 00:00:00 2001 From: toby Date: Sun, 23 Apr 2017 13:14:59 -0400 Subject: [PATCH] Fix bug: baking error did not reset baking status --- src/web/App.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/web/App.js b/src/web/App.js index 9c45765d..b4fb3a75 100755 --- a/src/web/App.js +++ b/src/web/App.js @@ -124,14 +124,14 @@ App.prototype.bake = async function(step) { this.handleError(err); } + this.setBakingStatus(false); + if (!response) return; if (response.error) { this.handleError(response.error); } - this.setBakingStatus(false); - this.options = response.options; this.dishStr = response.type === "html" ? Utils.stripHtmlTags(response.result, true) : response.result; this.progress = response.progress;