mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 18:46:40 -05:00
Fix drag-n-drop null ref in OE (#2163)
This commit is contained in:
@@ -96,6 +96,7 @@ export class ServerTreeDragAndDrop implements IDragAndDrop {
|
|||||||
let targetConnectionProfileGroup: ConnectionProfileGroup = this.getTargetGroup(targetElement);
|
let targetConnectionProfileGroup: ConnectionProfileGroup = this.getTargetGroup(targetElement);
|
||||||
|
|
||||||
const source = data.getData()[0];
|
const source = data.getData()[0];
|
||||||
|
if (source && source.getParent) {
|
||||||
let oldParent: ConnectionProfileGroup = source.getParent();
|
let oldParent: ConnectionProfileGroup = source.getParent();
|
||||||
const self = this;
|
const self = this;
|
||||||
if (this.isDropAllowed(targetConnectionProfileGroup, oldParent, source)) {
|
if (this.isDropAllowed(targetConnectionProfileGroup, oldParent, source)) {
|
||||||
@@ -112,8 +113,7 @@ export class ServerTreeDragAndDrop implements IDragAndDrop {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public dropAbort(tree: ITree, data: IDragAndDropData): void {
|
public dropAbort(tree: ITree, data: IDragAndDropData): void {
|
||||||
|
|||||||
Reference in New Issue
Block a user