mirror of
https://github.com/dbeaver/cloudbeaver.git
synced 2026-09-24 16:04:36 +08:00
fix(core-app): CB-1881 nav node info update
This commit is contained in:
@@ -128,8 +128,8 @@ export function useElementsTree(options: IOptions): IElementsTree {
|
||||
const nextChildren: string[] = [];
|
||||
|
||||
for (const child of children) {
|
||||
await navNodeInfoResource.waitLoad();
|
||||
await navTreeResource.waitLoad();
|
||||
await navNodeInfoResource.waitLoad();
|
||||
|
||||
const expanded = elementsTree.isNodeExpanded(child, true);
|
||||
if (!expanded && child !== options.root) {
|
||||
|
||||
@@ -40,6 +40,8 @@ export class NavNodeInfoResource extends CachedMapResource<string, NavNode> {
|
||||
|
||||
makeObservable(this, {
|
||||
setDetails: action,
|
||||
updateNode: action,
|
||||
setParent: action,
|
||||
});
|
||||
|
||||
this.metadata = new MetadataMap<string, INodeMetadata>(() => ({
|
||||
@@ -72,10 +74,9 @@ export class NavNodeInfoResource extends CachedMapResource<string, NavNode> {
|
||||
|
||||
if (keyList.length > 0) {
|
||||
this.set(resourceKeyList(keyList), values);
|
||||
} else {
|
||||
this.markUpdated(key);
|
||||
this.onItemAdd.execute(key);
|
||||
}
|
||||
this.markUpdated(key);
|
||||
this.onItemAdd.execute(key);
|
||||
}
|
||||
|
||||
setDetails(keyObject: ResourceKey<string>, state: boolean): void {
|
||||
|
||||
Reference in New Issue
Block a user