From 08589ebf9683472d6e919f56d39dac03c894a28f Mon Sep 17 00:00:00 2001 From: nick n <39005454+inphobia@users.noreply.github.com> Date: Fri, 28 Dec 2018 17:00:13 +0100 Subject: [PATCH] workaround for #457 (#465) i'm not in anyway versed in javascript, but this hack fixes #457 for me. --- share/public/javascripts/portsort.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/share/public/javascripts/portsort.js b/share/public/javascripts/portsort.js index 2de54fc4..1a2d0c71 100644 --- a/share/public/javascripts/portsort.js +++ b/share/public/javascripts/portsort.js @@ -30,6 +30,8 @@ function portSort (a, b) { // octal regex ore = /^0/, // convert all to strings and trim() + if (typeof a == 'null') { a = ''; } + if (typeof b == 'null') { b = ''; } x = a.toString().replace(sre, '') || '', y = b.toString().replace(sre, '') || '';