Persist commit message a bit longer

- the big problem is we were binding it to an empty variable
This commit is contained in:
Mattias Granlund 2023-07-25 13:14:42 +01:00
parent e4df830014
commit 49df76fd0e
2 changed files with 2 additions and 3 deletions

View File

@ -70,7 +70,7 @@
}
}}
>
{#each branches.filter((c) => c.active) as { id, name, files, commits, description, order, conflicted, upstream } (id)}
{#each branches.filter((c) => c.active) as { id, name, files, commits, order, conflicted, upstream } (id)}
<Lane
on:dragstart={(e) => {
if (!e.dataTransfer) return;
@ -79,7 +79,6 @@
priorPosition = Array.from(dropZone.children).indexOf(dragged);
}}
{name}
commitMessage={description}
{files}
{commits}
{conflicted}

View File

@ -41,7 +41,6 @@
export let branchId: string;
export let projectPath: string;
export let name: string;
export let commitMessage: string;
export let files: File[];
export let commits: Commit[];
export let projectId: string;
@ -54,6 +53,7 @@
const branchController = getContext<BranchController>(BRANCH_CONTROLLER_KEY);
const user = stores.user;
let commitMessage: string;
$: remoteCommits = commits.filter((c) => c.isRemote);
$: localCommits = commits.filter((c) => !c.isRemote);