public inbox for [email protected]
help / color / mirror / Atom feed[pgAdmin][RM-7239]: Tables node is not loading the new tables on refresh
2+ messages / 2 participants
[nested] [flat]
* [pgAdmin][RM-7239]: Tables node is not loading the new tables on refresh
@ 2022-03-29 07:31 Nikhil Mohite <[email protected]>
0 siblings, 1 reply; 2+ messages in thread
From: Nikhil Mohite @ 2022-03-29 07:31 UTC (permalink / raw)
To: pgadmin-hackers
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);
}
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: [pgAdmin][RM-7239]: Tables node is not loading the new tables on refresh
@ 2022-03-29 09:29 Akshay Joshi <[email protected]>
parent: Nikhil Mohite <[email protected]>
0 siblings, 0 replies; 2+ messages in thread
From: Akshay Joshi @ 2022-03-29 09:29 UTC (permalink / raw)
To: Nikhil Mohite <[email protected]>; +Cc: pgadmin-hackers
Thanks, the patch applied.
On Tue, Mar 29, 2022 at 1:02 PM Nikhil Mohite <
[email protected]> wrote:
> 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.*
>
--
*Thanks & Regards*
*Akshay Joshi*
*pgAdmin Hacker | Principal Software Architect*
*EDB Postgres <http://edbpostgres.com>*
*Mobile: +91 976-788-8246*
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2022-03-29 09:29 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2022-03-29 07:31 [pgAdmin][RM-7239]: Tables node is not loading the new tables on refresh Nikhil Mohite <[email protected]>
2022-03-29 09:29 ` Akshay Joshi <[email protected]>
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox