From 129dde8ba032c171823d5a650cb036ced5261c50 Mon Sep 17 00:00:00 2001 From: LazeMSS Date: Mon, 27 Sep 2021 19:58:54 +0200 Subject: [PATCH] Fixed bug in the _.map usage - might need furhter investigation --- src/octoprint/static/js/app/viewmodels/terminal.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/octoprint/static/js/app/viewmodels/terminal.js b/src/octoprint/static/js/app/viewmodels/terminal.js index b114ee942..05d649e19 100644 --- a/src/octoprint/static/js/app/viewmodels/terminal.js +++ b/src/octoprint/static/js/app/viewmodels/terminal.js @@ -286,7 +286,7 @@ $(function () { display = "line"; } - if (type === undefined) { + if (type === undefined || typeof type != "string") { if (line.startsWith("Recv:")) { type = "recv"; } else if (line.startsWith("Send:")) {