Bugfix determining new upstream commits

This commit is contained in:
Mattias Granlund 2024-05-23 17:46:43 +01:00
parent f4b3dde2e8
commit afda601f69

View File

@ -42,8 +42,9 @@
// Set the store immediately so it can be updated later.
const upstreamCommits = createUpstreamContextStore([]);
$: upstreamCommits.set(branch.upstreamData?.commits ?? []);
const unknownCommits = createUnknownCommitsStore([]);
$: unknownCommits.set($upstreamCommits.filter((c) => !c.relatedTo || c.id != c.relatedTo.id));
$: unknownCommits.set($upstreamCommits.filter((c) => !c.relatedTo));
const fileIdSelection = new FileIdSelection();
setContext(FileIdSelection, fileIdSelection);