Merge pull request #2203 from gitbutlerapp/fix-draggable-file-function

Fix draggable file function
This commit is contained in:
Nikita Galaiko 2024-01-09 15:12:04 +01:00 committed by GitHub
commit ffa40422d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -55,7 +55,7 @@
const newOwnership = `${data.hunk.filePath}:${data.hunk.id}`; const newOwnership = `${data.hunk.filePath}:${data.hunk.id}`;
branchController.amendBranch(branch.id, newOwnership); branchController.amendBranch(branch.id, newOwnership);
} else if (isDraggableFile(data)) { } else if (isDraggableFile(data)) {
const newOwnership = filesToOwnership(get(data.files)); const newOwnership = filesToOwnership([data.current, ...get(data.files)]);
branchController.amendBranch(branch.id, newOwnership); branchController.amendBranch(branch.id, newOwnership);
} }
} }