fix: move nodesData/usersData declarations before IIFE to avoid TDZ

This commit is contained in:
2026-04-10 22:54:50 +07:00
parent 0f51c080b2
commit 1690d24b11
+2 -3
View File
@@ -1,6 +1,8 @@
// Headscale Web Admin - Frontend
let adminToken = '';
let nodesData = [];
let usersData = [];
// --- Auth ---
@@ -77,9 +79,6 @@ function switchTab(name) {
// --- Data ---
let nodesData = [];
let usersData = [];
function refreshAll() {
refreshNodes();
refreshUsers();