Radish alpha
r
Radicle web interface
Radicle
Git (anonymous pull)
Log in to clone via SSH
Fix timestamp calculation when filtering patches
Rūdolfs Ošiņš committed 1 year ago
commit 87979c5feba57a87dee73e96fae9cead2c43d0b5
parent 5e5e69771f803958daf211ca2da4ea3063a7f4d2
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),