From 7b6101bc6d934ff9ae24b481d7c52a32ff5cbe45 Mon Sep 17 00:00:00 2001 From: Khushboo Vashi Date: Tue, 28 Sep 2021 15:04:37 +0530 Subject: [PATCH] Fixed 'Save' button issue where dialog is not getting closed. --- web/pgadmin/static/js/tree/tree.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/web/pgadmin/static/js/tree/tree.js b/web/pgadmin/static/js/tree/tree.js index 1885f6d5d..cdb3f4e68 100644 --- a/web/pgadmin/static/js/tree/tree.js +++ b/web/pgadmin/static/js/tree/tree.js @@ -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 []; }