From 4625e6aa7b91489a0772ea22e700a1910f318659 Mon Sep 17 00:00:00 2001 From: Josef-MrBeam <81746291+Josef-MrBeam@users.noreply.github.com> Date: Wed, 28 Sep 2022 15:23:40 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20bug=20in=20slicing=20progr?= =?UTF-8?q?ess=20reporting=20to=20UI=20(#4636)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit in the event handler onSlicingStarted the uploadProgressPercentage was given the parameter perecntage, but this was not know, so it will throw an error. As this is the start of the slicing the correct value should be 0 --- src/octoprint/static/js/app/viewmodels/files.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/octoprint/static/js/app/viewmodels/files.js b/src/octoprint/static/js/app/viewmodels/files.js index 925c57d3c..a0c33d85e 100644 --- a/src/octoprint/static/js/app/viewmodels/files.js +++ b/src/octoprint/static/js/app/viewmodels/files.js @@ -1464,7 +1464,7 @@ $(function () { self.uploadProgress.addClass("progress-striped").addClass("active"); self.uploadProgressBar.css("width", "100%"); if (payload.progressAvailable) { - self.uploadProgressPercentage(percentage); + self.uploadProgressPercentage(0); self.uploadProgressText( _.sprintf(gettext("Slicing ... (%(percentage)d%%)"), {percentage: 0}) );