From 491412807ca5cf8e9d0ff713b33a051037978032 Mon Sep 17 00:00:00 2001 From: Bernd Bestel Date: Sat, 13 May 2023 14:28:50 +0200 Subject: [PATCH] Fixed table column visibility selection --- public/js/grocy.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/js/grocy.js b/public/js/grocy.js index ef39513d..3b845953 100644 --- a/public/js/grocy.js +++ b/public/js/grocy.js @@ -1034,7 +1034,7 @@ $(".change-table-columns-visibility-button").on("click", function(e) var title = headerCell.text(); var visible = this.visible(); - if (!title || title.startsWith("Hidden") || headerCell.hasClass("d-none")) + if (!title || title.trim().length == 0 || title.startsWith("Hidden") || headerCell.hasClass("d-none")) { return; }