From 3a90b394c0b99df8ec13575cfb4e22500208a620 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Mon, 8 Feb 2021 18:21:01 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=A8=20let=20=3D>=20var=20&=20actually?= =?UTF-8?q?=20use=20the=20sorting=20result?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .eslintignore | 2 +- src/octoprint/plugins/logging/static/js/logging.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.eslintignore b/.eslintignore index 677061a2d..4dcb7dbaa 100644 --- a/.eslintignore +++ b/.eslintignore @@ -1 +1 @@ -tests/cypress/** +tests/cypress diff --git a/src/octoprint/plugins/logging/static/js/logging.js b/src/octoprint/plugins/logging/static/js/logging.js index 05a17bf54..53052f376 100644 --- a/src/octoprint/plugins/logging/static/js/logging.js +++ b/src/octoprint/plugins/logging/static/js/logging.js @@ -97,10 +97,10 @@ $(function () { levels.push(item); configuredLoggers.push(logger); }); - let sortedLevels = _.sortBy(levels, function (o) { + var sortedLevels = _.sortBy(levels, function (o) { return o.component; }); - self.configuredLoggers(levels); + self.configuredLoggers(sortedLevels); // loggers var availableLoggers = _.difference(response.loggers, configuredLoggers);