From 5011acb03d84d7054be5836671b99f941cbf9573 Mon Sep 17 00:00:00 2001 From: malnvenshorn Date: Wed, 13 Dec 2017 16:27:42 +0100 Subject: [PATCH] Fixes #52 --- octoprint_filamentmanager/static/js/filamentmanager.bundled.js | 2 +- static/js/viewmodels/spools.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/octoprint_filamentmanager/static/js/filamentmanager.bundled.js b/octoprint_filamentmanager/static/js/filamentmanager.bundled.js index fbb5107..7cc5f0e 100644 --- a/octoprint_filamentmanager/static/js/filamentmanager.bundled.js +++ b/octoprint_filamentmanager/static/js/filamentmanager.bundled.js @@ -695,7 +695,7 @@ FilamentManager.prototype.viewModels.spools = function spoolsViewModel() { }, vendor: function vendor(a, b) { // sorts ascending - if (a.profile.vendor.toLocaleLowerCase() < b.rofile.vendor.toLocaleLowerCase()) return -1; + if (a.profile.vendor.toLocaleLowerCase() < b.profile.vendor.toLocaleLowerCase()) return -1; if (a.profile.vendor.toLocaleLowerCase() > b.profile.vendor.toLocaleLowerCase()) return 1; return 0; }, diff --git a/static/js/viewmodels/spools.js b/static/js/viewmodels/spools.js index 7414d2a..7a955fd 100644 --- a/static/js/viewmodels/spools.js +++ b/static/js/viewmodels/spools.js @@ -23,7 +23,7 @@ FilamentManager.prototype.viewModels.spools = function spoolsViewModel() { }, vendor(a, b) { // sorts ascending - if (a.profile.vendor.toLocaleLowerCase() < b.rofile.vendor.toLocaleLowerCase()) return -1; + if (a.profile.vendor.toLocaleLowerCase() < b.profile.vendor.toLocaleLowerCase()) return -1; if (a.profile.vendor.toLocaleLowerCase() > b.profile.vendor.toLocaleLowerCase()) return 1; return 0; },