mirror of
https://github.com/dbeaver/cloudbeaver.git
synced 2026-09-24 16:04:36 +08:00
dbeaver/pro#9638 refactor(connectionUpdateHandler): move node to a new parent on change
This commit is contained in:
@@ -162,6 +162,10 @@ export class ConnectionNavNodeService {
|
||||
|
||||
const folderId = node?.parentId; // current parent
|
||||
|
||||
if (folderId && folderId !== parentId && this.navTreeResource.has(parentId)) {
|
||||
this.navTreeResource.moveToNode(connectionInfo.nodePath, parentId);
|
||||
}
|
||||
|
||||
if (folderId && !outdatedTrees.includes(folderId)) {
|
||||
outdatedTrees.push(folderId);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user