mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-01-09 23:54:09 -06:00
Fixed 'Save' button issue where dialog is not getting closed.
This commit is contained in:
parent
1569be7866
commit
7b6101bc6d
@ -177,6 +177,12 @@ export class Tree {
|
||||
await this.tree.closeDirectory(item);
|
||||
}
|
||||
|
||||
async setId(item, data) {
|
||||
if(item) {
|
||||
item.getMetadata('data').id = data.id;
|
||||
}
|
||||
}
|
||||
|
||||
deselect(item) {
|
||||
this.tree.deSelectActiveFile(item);
|
||||
}
|
||||
@ -240,7 +246,7 @@ export class Tree {
|
||||
if (this.hasParent(item)) {
|
||||
let _siblings = this.parent(item).children.filter((_item) => _item.path !== item.path);
|
||||
if (typeof(_siblings) !== 'object') return [_siblings];
|
||||
else _siblings;
|
||||
else return _siblings;
|
||||
}
|
||||
return [];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user