From 8ab6b09a32093fc2b59c6ff3439188775c4ba849 Mon Sep 17 00:00:00 2001 From: Nikita Galaiko Date: Tue, 9 Jan 2024 15:02:33 +0100 Subject: [PATCH] fix: amend file ownership calculation --- .../src/routes/[projectId]/components/CommitListItem.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gitbutler-ui/src/routes/[projectId]/components/CommitListItem.svelte b/gitbutler-ui/src/routes/[projectId]/components/CommitListItem.svelte index 7ef895e60..8658ec674 100644 --- a/gitbutler-ui/src/routes/[projectId]/components/CommitListItem.svelte +++ b/gitbutler-ui/src/routes/[projectId]/components/CommitListItem.svelte @@ -55,7 +55,7 @@ const newOwnership = `${data.hunk.filePath}:${data.hunk.id}`; branchController.amendBranch(branch.id, newOwnership); } else if (isDraggableFile(data)) { - const newOwnership = filesToOwnership(get(data.files)); + const newOwnership = filesToOwnership([data.current, ...get(data.files)]); branchController.amendBranch(branch.id, newOwnership); } }