Ensure that after deleting multiple objects from the properties panel, the browser tree should be refreshed. Fixes #7296

This commit is contained in:
Pradip Parkale 2022-04-09 11:35:11 +05:30 committed by Akshay Joshi
parent 0747329575
commit efa971edb4
2 changed files with 14 additions and 12 deletions

View File

@ -29,3 +29,4 @@ Bug fixes
| `Issue #7260 <https://redmine.postgresql.org/issues/7260>`_ - Fixed an issue where an Empty message popup after running a query.
| `Issue #7262 <https://redmine.postgresql.org/issues/7262>`_ - Ensure that Autocomplete should work after changing the connection.
| `Issue #7294 <https://redmine.postgresql.org/issues/7294>`_ - Fixed an issue where the copy and paste row does not work if the first column contains no data.
| `Issue #7296 <https://redmine.postgresql.org/issues/7296>`_ - Ensure that after deleting multiple objects from the properties panel, the browser tree should be refreshed.

View File

@ -162,12 +162,13 @@ export function CollectionNodeView({
if (res.success == 0) {
pgBrowser.report_error(res.errormsg, res.info);
}
pgAdmin.Browser.tree.refresh(selItem);
setReload(!reload);
})
.catch(function (error) {
Notify.alert(
gettext('Error dropping %s', selectedItemData._label.toLowerCase()),
error.response.data.errormsg
_.isUndefined(error.response) ? error.message : error.response.data.errormsg
);
});
};