Fix timestamp calculation when filtering patches

This commit is contained in:
Rūdolfs Ošiņš
2024-07-17 07:26:53 +02:00
committed by Sebastian Martinez
parent 5e5e69771f
commit 87979c5feb
+2 -2
View File
@@ -17,8 +17,8 @@
export let baseUrl: BaseUrl;
export let patch: Patch;
const latestRevisionIndex = patch.revisions.length - 1;
const latestRevision = patch.revisions[latestRevisionIndex];
$: latestRevisionIndex = patch.revisions.length - 1;
$: latestRevision = patch.revisions[latestRevisionIndex];
$: commentCount = patch.revisions.reduce(
(acc, curr) => acc + curr.discussions.reduce(acc => acc + 1, 0),