Fixed an issue where the newly added table is not visible under the Tables node on refresh. Fixes #7239

This commit is contained in:
Nikhil Mohite
2022-03-29 14:40:54 +05:30
committed by Akshay Joshi
parent 38b69c91a1
commit 08e00ccebc
2 changed files with 5 additions and 0 deletions
+4
View File
@@ -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);
}