mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Trigger the browser tree destroyed event so the consequences of destroying the tree are handled properly.
This commit is contained in:
@@ -555,11 +555,12 @@ export default function PreferencesComponent({ ...props }) {
|
||||
gettext('Object explorer refresh required'),
|
||||
gettext('An object explorer refresh is required. Do you wish to refresh it now?'),
|
||||
function () {
|
||||
pgAdmin.Browser.tree.destroy({
|
||||
success: function () {
|
||||
pgAdmin.Browser.tree.destroy().then(
|
||||
() => {
|
||||
pgAdmin.Browser.Events.trigger('pgadmin-browser:tree:destroyed', undefined, undefined);
|
||||
return true;
|
||||
},
|
||||
});
|
||||
}
|
||||
);
|
||||
},
|
||||
function () {
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user