Fixed an issue where properties panel is not updated when any object is added from the browser tree. Fixes #6859

This commit is contained in:
Rahul Shirsat 2021-10-27 10:31:49 +05:30 committed by Akshay Joshi
parent 8eb6f8061d
commit 711ea3bfa1
2 changed files with 4 additions and 1 deletions

View File

@ -19,4 +19,5 @@ Bug fixes
*********
| `Issue #6780 <https://redmine.postgresql.org/issues/6780>`_ - Ensure that columns should be merged if the newly added column is present in the parent table.
| `Issue #6859 <https://redmine.postgresql.org/issues/6859>`_ - Fixed an issue where properties panel is not updated when any object is added from the browser tree.
| `Issue #6949 <https://redmine.postgresql.org/issues/6949>`_ - Ensure that dialog should be opened when clicking on Reassign/Drop owned menu.

View File

@ -1086,11 +1086,13 @@ define('pgadmin.browser', [
};
if (binarySearch()) {
__ctx.t.before(i, _data).then(() => {
__ctx.t.before(i, _data).then((_item) => {
if (
__ctx.o && __ctx.o.success && typeof(__ctx.o.success) == 'function'
) {
__ctx.o.success.apply(__ctx.t, [i, _data]);
} else {
__ctx.t.select(_item);
}
}, () => {
console.warn('Failed to add before...', arguments);