Skip to content

Commit

Permalink
pref: does not close dialog when adding data error (tiny-craft#338)
Browse files Browse the repository at this point in the history
  • Loading branch information
tiny-craft committed Aug 20, 2024
1 parent 970ebcf commit c082a0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/components/dialogs/NewKeyDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit c082a0c

Please sign in to comment.