Call initTable() from getGroups() when finished to avoid a possible race-collision

Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
DL6ER
2023-11-17 10:33:38 +01:00
parent 2c4c73b452
commit 9815602ecd
4 changed files with 6 additions and 13 deletions

View File

@@ -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);