mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Extra check to prevent JS crash
This commit is contained in:
parent
fc32d99327
commit
4952c95c33
@ -154,7 +154,7 @@ $.fn.inventreeTable = function(options) {
|
||||
// Which columns are currently visible?
|
||||
var visible = table.bootstrapTable('getVisibleColumns');
|
||||
|
||||
if (visible) {
|
||||
if (visible && isArray(visible)) {
|
||||
visible.forEach(function(column) {
|
||||
|
||||
// Visible field should *not* be visible! (hide it!)
|
||||
|
Loading…
Reference in New Issue
Block a user