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

@@ -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);