Extra check to prevent JS crash

This commit is contained in:
Oliver Walters 2021-01-15 16:51:34 +11:00
parent fc32d99327
commit 4952c95c33

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) { if (visible && 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!)