mirror of
https://github.com/pi-hole/web.git
synced 2025-12-24 12:48:29 +00:00
Call initTable() from getGroups() when finished to avoid a possible race-collision
Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
* This file is copyright under the latest version of the EUPL.
|
||||
* Please see LICENSE file for your rights under this license. */
|
||||
|
||||
/* global apiFailure:false, utils:false */
|
||||
/* global apiFailure:false, utils:false, initTable:false */
|
||||
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
var groups = [];
|
||||
@@ -18,6 +18,8 @@ function getGroups() {
|
||||
dataType: "json",
|
||||
success: function (data) {
|
||||
groups = data.groups;
|
||||
// Actually load table contents
|
||||
initTable();
|
||||
},
|
||||
error: function (data) {
|
||||
apiFailure(data);
|
||||
|
||||
Reference in New Issue
Block a user