diff --git a/apps/desktop/src/lib/branch/BranchLane.svelte b/apps/desktop/src/lib/branch/BranchLane.svelte index 3a998b8f9..bda862bf5 100644 --- a/apps/desktop/src/lib/branch/BranchLane.svelte +++ b/apps/desktop/src/lib/branch/BranchLane.svelte @@ -58,10 +58,10 @@ }); const project = getContext(Project); - const fileIdSelection = new FileIdSelection(project.id, branchFiles); + const fileIdSelection = new FileIdSelection(branchFiles); const selectedFile = fileIdSelection.selectedFile; - const commitId = $derived($selectedFile?.[0]); - const selected = $derived($selectedFile?.[1]); + const commitId = $derived($selectedFile?.commitId); + const selected = $derived($selectedFile?.file); setContext(FileIdSelection, fileIdSelection); const userSettings = getContextStoreBySymbol(SETTINGS); diff --git a/apps/desktop/src/lib/components/BranchPreview.svelte b/apps/desktop/src/lib/components/BranchPreview.svelte index 3cd97fdb4..56dc8a3c5 100644 --- a/apps/desktop/src/lib/components/BranchPreview.svelte +++ b/apps/desktop/src/lib/components/BranchPreview.svelte @@ -1,7 +1,6 @@