Skip to content

Commit

Permalink
Fixed type generation
Browse files Browse the repository at this point in the history
Signed-off-by: Seb Julliand <[email protected]>
  • Loading branch information
sebjulliand committed Jan 7, 2024
1 parent a127797 commit 443f505
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/views/ifsBrowser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ class IFSBrowserDragAndDrop implements vscode.TreeDragAndDropController<IFSItem>

private async moveOrCopyItems(ifsBrowserItems: IFSItem[], toDirectory: IFSDirectoryItem) {
const connection = instance.getConnection();
ifsBrowserItems = ifsBrowserItems.filter(item => item.path !== toDirectory.path && (item.parent && "path" in item.parent && item.parent.path !== toDirectory.path));
ifsBrowserItems = ifsBrowserItems.filter(item => item.path !== toDirectory.path && (item.parent && item.parent instanceof IFSItem && item.parent.path !== toDirectory.path));
if (connection && ifsBrowserItems.length) {
const dndBehavior = getDragDropBehavior();
let action: DragNDropAction | undefined;
Expand Down

0 comments on commit 443f505

Please sign in to comment.