Fix an issue where editing a database object de-selects it on the browser tree. #6136

This commit is contained in:
Anil Sahoo authored and GitHub committed 2023-06-02 10:59:47 +05:30
1 parent 9b85e0a4cd
commit b5af4ead0d
2 files changed
+1 -6

No files matched your search

@@ -210,11 +210,6 @@ define('pgadmin.node.database', [
}
return false;
},
updated: (_i, _opts)=>{
pgBrowser.tree.refresh(_i._parent).then(() =>{
if (_opts && _opts.success) _opts.success();
});
},
/* Disconnect the database */
disconnect_database: function(args) {
let input = args || {},
@@ -544,7 +544,7 @@ export default function PreferencesComponent({ ...props }) {
data: save_data,
}).then(() => {
let requiresTreeRefresh = save_data.some((s)=>{
return s.name=='show_system_objects'||s.name=='show_empty_coll_nodes'||s.name.startsWith('show_node_')||s.name=='hide_shared_server';
return s.name=='show_system_objects'||s.name=='show_empty_coll_nodes'||s.name.startsWith('show_node_')||s.name=='hide_shared_server'||s.name=='show_user_defined_templates';
});
let requires_refresh = false;
/* Find the modules changed */