mirror of
https://github.com/fankes/beszel.git
synced 2025-10-19 01:39:34 +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)
|
tokenMap.set(system.id, token)
|
||||||
setToken(token)
|
setToken(token)
|
||||||
})()
|
})()
|
||||||
}, [system?.id])
|
}, [system?.id, nextSystemToken])
|
||||||
|
|
||||||
async function handleSubmit(e: SubmitEvent) {
|
async function handleSubmit(e: SubmitEvent) {
|
||||||
e.preventDefault()
|
e.preventDefault()
|
||||||
|
Reference in New Issue
Block a user