diff --git a/docs/en_US/release_notes_6_2.rst b/docs/en_US/release_notes_6_2.rst index d3bf9885b..99ed9aef1 100644 --- a/docs/en_US/release_notes_6_2.rst +++ b/docs/en_US/release_notes_6_2.rst @@ -19,4 +19,5 @@ Bug fixes ********* | `Issue #6780 `_ - Ensure that columns should be merged if the newly added column is present in the parent table. +| `Issue #6859 `_ - Fixed an issue where properties panel is not updated when any object is added from the browser tree. | `Issue #6949 `_ - Ensure that dialog should be opened when clicking on Reassign/Drop owned menu. diff --git a/web/pgadmin/browser/static/js/browser.js b/web/pgadmin/browser/static/js/browser.js index 40fc14a8a..45f18cb93 100644 --- a/web/pgadmin/browser/static/js/browser.js +++ b/web/pgadmin/browser/static/js/browser.js @@ -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);