From 08e00ccebc7bbbfff903a7a7802454d0fff4a9ad Mon Sep 17 00:00:00 2001 From: Nikhil Mohite Date: Tue, 29 Mar 2022 14:40:54 +0530 Subject: [PATCH] =?UTF-8?q?Fixed=20an=20issue=20where=C2=A0the=20newly=20a?= =?UTF-8?q?dded=20table=20is=20not=20visible=20under=20the=20Tables=20node?= =?UTF-8?q?=20on=20refresh.=20Fixes=20#7239?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/en_US/release_notes_6_8.rst | 1 + web/pgadmin/static/js/tree/tree.js | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/docs/en_US/release_notes_6_8.rst b/docs/en_US/release_notes_6_8.rst index c718c28c4..1e17b7afd 100644 --- a/docs/en_US/release_notes_6_8.rst +++ b/docs/en_US/release_notes_6_8.rst @@ -26,6 +26,7 @@ Bug fixes | `Issue #7216 `_ - Ensure that the values of certain fields are prettified in the statistics tab for collection nodes. | `Issue #7221 `_ - Ensure objects depending on extensions are not displayed in Schema Diff. | `Issue #7238 `_ - Fixed an issue where foreign key is not removed even if the referred table is removed in ERD. + | `Issue #7239 `_ - Fixed an issue where the newly added table is not visible under the Tables node on refresh. | `Issue #7261 `_ - Correct typo in the documentation. | `Issue #7263 `_ - Fixed schema diff issue where function's difference DDL was showing incorrectly when arguments had default values with commas. | `Issue #7265 `_ - Fixed schema diff issue in which the option 'null' doesn't appear in the DDL statement for the foreign table. diff --git a/web/pgadmin/static/js/tree/tree.js b/web/pgadmin/static/js/tree/tree.js index 266bddfc0..fd6793ca4 100644 --- a/web/pgadmin/static/js/tree/tree.js +++ b/web/pgadmin/static/js/tree/tree.js @@ -85,6 +85,10 @@ export class Tree { } async refresh(item) { + // Set _children to null as empty array not reload the children nodes on refresh. + if(item.children?.length == 0) { + item._children = null; + } await this.tree.refresh(item); }