Radish alpha
r
Radicle web interface
Radicle
Git (anonymous pull)
Log in to clone via SSH
Fix project sorting on node page when there is no activity data
Rūdolfs Ošiņš committed 2 years ago
commit 0c0842e6f34a84530c2f3609d6306daf7908447f
parent 492ff5b07c6457b0b4b0d05e331cce968f598022
1 file changed +1 -1
modified src/views/nodes/router.ts
@@ -60,7 +60,7 @@ export async function loadProjects(
  );
  // Sorts projects by most recent commit descending.
  const sortedProjects = results.sort(
-
    (a, b) => b.activity[0].time - a.activity[0].time,
+
    (a, b) => b.activity[0]?.time - a.activity[0]?.time,
  );

  return {