public inbox for [email protected]
help / color / mirror / Atom feedFrom: Nikhil Mohite <[email protected]>
To: pgadmin-hackers <[email protected]>
Subject: [pgAdmin][RM-7239]: Tables node is not loading the new tables on refresh
Date: Tue, 29 Mar 2022 13:01:50 +0530
Message-ID: <CAOBg0AOzfTvYE6sZ6QBUWEt7LGL9t8D2tFqK4EHG8K1fdmcjAg@mail.gmail.com> (raw)
Hi Hackers,
Please find attached the patch for RM-7239
<https://redmine.postgresql.org/issues/7239;: Tables node is not loading
the new tables on refresh
--
*Thanks & Regards,*
*Nikhil Mohite*
*Senior Software Engineer.*
*EDB Postgres* <https://www.enterprisedb.com/;
*Mob.No: +91-7798364578.*
Attachments:
[application/octet-stream] RM-7239.patch (476B, 3-RM-7239.patch)
download | inline diff:
diff --git a/web/pgadmin/static/js/tree/tree.js b/web/pgadmin/static/js/tree/tree.js
index 266bddfc..fd6793ca 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);
}
view thread (2+ messages) latest in thread
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected]
Subject: Re: [pgAdmin][RM-7239]: Tables node is not loading the new tables on refresh
In-Reply-To: <CAOBg0AOzfTvYE6sZ6QBUWEt7LGL9t8D2tFqK4EHG8K1fdmcjAg@mail.gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox