mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Select parent node when deleting/dropping the last children.
This commit is contained in:
parent
05a3d509bc
commit
57f3cbfa3b
@ -535,8 +535,13 @@ function($, _, S, pgAdmin, Menu, Backbone, Alertify, pgBrowser, Backform) {
|
||||
pgBrowser.report_error(res.errormsg, res.info);
|
||||
} else {
|
||||
var n = t.next(i);
|
||||
if (!n || !n.length)
|
||||
if (!n || !n.length) {
|
||||
n = t.prev(i);
|
||||
if (!n || !n.length) {
|
||||
n = t.parent(i);
|
||||
t.setInode(n, true);
|
||||
}
|
||||
}
|
||||
t.remove(i);
|
||||
if (n.length) {
|
||||
t.select(n);
|
||||
|
Loading…
Reference in New Issue
Block a user