Radish alpha
r
rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5
Radicle web interface
Radicle
Git
Fix timestamp calculation when filtering patches
Rūdolfs Ošiņš committed 1 year ago
commit 87979c5feba57a87dee73e96fae9cead2c43d0b5
parent 5e5e697
1 file changed +2 -2
modified src/views/projects/Patch/PatchTeaser.svelte
@@ -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),