mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2026-08-04 10:23:03 -05:00
Fixed an issue where the newly added table is not visible under the Tables node on refresh. Fixes #7239
This commit is contained in:
committed by
Akshay Joshi
parent
38b69c91a1
commit
08e00ccebc
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user