pref: does not close dialog when adding data error (#338)
This commit is contained in:
parent
970ebcf902
commit
c082a0c41f
|
@ -174,10 +174,10 @@ const onAdd = async () => {
|
|||
tabStore.setSelectedKeys(server, nodeKey)
|
||||
browserStore.reloadKey({ server, db, key })
|
||||
}
|
||||
dialogStore.closeNewKeyDialog()
|
||||
} else if (!isEmpty(msg)) {
|
||||
$message.error(msg)
|
||||
}
|
||||
dialogStore.closeNewKeyDialog()
|
||||
} catch (e) {
|
||||
return false
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue