Merge pull request #1236 from SchrodingersGat/js-fix

Bug fix
This commit is contained in:
Oliver 2021-01-17 19:58:35 +11:00 committed by GitHub
commit 2991ce9317
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -154,7 +154,7 @@ $.fn.inventreeTable = function(options) {
// Which columns are currently visible? // Which columns are currently visible?
var visible = table.bootstrapTable('getVisibleColumns'); var visible = table.bootstrapTable('getVisibleColumns');
if (visible && isArray(visible)) { if (visible && Array.isArray(visible)) {
visible.forEach(function(column) { visible.forEach(function(column) {
// Visible field should *not* be visible! (hide it!) // Visible field should *not* be visible! (hide it!)