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

View File

@ -26,6 +26,7 @@ Bug fixes
| `Issue #7216 <https://redmine.postgresql.org/issues/7216>`_ - Ensure that the values of certain fields are prettified in the statistics tab for collection nodes.
| `Issue #7221 <https://redmine.postgresql.org/issues/7221>`_ - Ensure objects depending on extensions are not displayed in Schema Diff.
| `Issue #7238 <https://redmine.postgresql.org/issues/7238>`_ - Fixed an issue where foreign key is not removed even if the referred table is removed in ERD.
| `Issue #7239 <https://redmine.postgresql.org/issues/7239>`_ - Fixed an issue where the newly added table is not visible under the Tables node on refresh.
| `Issue #7261 <https://redmine.postgresql.org/issues/7261>`_ - Correct typo in the documentation.
| `Issue #7263 <https://redmine.postgresql.org/issues/7263>`_ - Fixed schema diff issue where function's difference DDL was showing incorrectly when arguments had default values with commas.
| `Issue #7265 <https://redmine.postgresql.org/issues/7265>`_ - Fixed schema diff issue in which the option 'null' doesn't appear in the DDL statement for the foreign table.

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);
}