Fixed an issue with the non-visibility of columns added prior to import/export data. Fixes #7649

This commit is contained in:
Yogesh Mahajan
2022-09-07 17:40:52 +05:30
committed by Akshay Joshi
parent 0f46f070ed
commit ad59380676
3 changed files with 8 additions and 1 deletions

View File

@@ -1079,6 +1079,12 @@ define('pgadmin.browser.node', [
}
},
added: function(item, data) {
if (pgBrowser.tree.getData(item)._type.indexOf('coll-') !== -1){
setTimeout(function() {
let _item = pgAdmin.Browser.Nodes[pgBrowser.tree.getData(item).nodes[0]];
_item.clear_cache.apply(_item);
}, 0);
}
pgBrowser.Events.trigger('pgadmin:browser:tree:expand-from-previous-tree-state',
item);
pgBrowser.Node.callbacks.change_server_background(item, data);