mirror of
https://github.com/pi-hole/web.git
synced 2025-12-24 12:48:29 +00:00
final null check on stateLoadCallBack (#1411)
Signed-off-by: Adam Warner <me@adamwarner.co.uk>
This commit is contained in:
@@ -99,6 +99,11 @@ $(function () {
|
||||
},
|
||||
stateLoadCallback: function () {
|
||||
var data = utils.stateLoadCallback("messages-table");
|
||||
// Return if not available
|
||||
if (data === null) {
|
||||
return null;
|
||||
}
|
||||
|
||||
// Reset visibility of ID and blob columns
|
||||
var hiddenCols = [0, 4, 5, 6, 7, 8];
|
||||
for (var key in hiddenCols) {
|
||||
|
||||
Reference in New Issue
Block a user