mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-15 11:20:36 +08:00
Fix timestamp calculation when filtering patches
This commit is contained in:
committed by
Sebastian Martinez
parent
5e5e69771f
commit
87979c5feb
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user