Radish alpha
r
rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5
Radicle web interface
Radicle
Git
Fix timestamp calculation when filtering patches
Open rudolfs opened 1 year ago
1 file changed +2 -2 1775dd28 fde8ca93
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),