fix: was unable to go edit server screen after hitting cancel
This commit is contained in:
parent
295967cc4d
commit
d96ff9ef3a
1 changed files with 6 additions and 0 deletions
|
|
@ -186,6 +186,12 @@ const Inner = () => {
|
|||
}
|
||||
}, [serverEditScreen])
|
||||
|
||||
useDidUpdateEffect(() => {
|
||||
if (!isEditScreenModal) {
|
||||
setServerEditScreen(null)
|
||||
}
|
||||
}, [isEditScreenModal])
|
||||
|
||||
if (isEditScreenModal) {
|
||||
return <AddServerOrConnect
|
||||
defaults={{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue