mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-03 18:50:30 +08:00
Fix project sorting on node page when there is no activity data
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user