fix: filter out empty users in auth-keys, potential headscale bug
This commit is contained in:
parent
69c6fc4847
commit
5e332c4a5c
@ -22,7 +22,9 @@ export async function loader({
|
||||
);
|
||||
|
||||
const preAuthKeys = await Promise.all(
|
||||
users.users.map((user) => {
|
||||
users.users
|
||||
.filter((user) => user.name?.length > 0) // Filter out any invalid users
|
||||
.map((user) => {
|
||||
const qp = new URLSearchParams();
|
||||
qp.set('user', user.name);
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user