mirror of
https://github.com/fankes/beszel.git
synced 2025-10-18 09:19:27 +08:00
fix: add nextSystemToken to deps of useEffect to generate a new token after system creation (#1142)
This commit is contained in:
@@ -97,7 +97,7 @@ export const SystemDialog = ({ setOpen, system }: { setOpen: (open: boolean) =>
|
||||
tokenMap.set(system.id, token)
|
||||
setToken(token)
|
||||
})()
|
||||
}, [system?.id])
|
||||
}, [system?.id, nextSystemToken])
|
||||
|
||||
async function handleSubmit(e: SubmitEvent) {
|
||||
e.preventDefault()
|
||||
|
Reference in New Issue
Block a user