Check data for null before trying to manipulate it. Closes #1391

Signed-off-by: Adam Warner <me@adamwarner.co.uk>
This commit is contained in:
Adam Warner
2020-05-28 21:38:14 +01:00
parent 789470c1b2
commit 39ac2026b0
4 changed files with 20 additions and 0 deletions

View File

@@ -210,6 +210,11 @@ function initTable() {
},
stateLoadCallback: function () {
var data = utils.stateLoadCallback("groups-clients-table");
// Return if not available
if (data === null) {
return null;
}
// Reset visibility of ID column
data.columns[0].visible = false;
// Apply loaded state to table