Remove usage of toSorted as it is not fully supported (#4168)

This commit is contained in:
Charles Bochet
2024-02-24 12:12:55 +01:00
committed by GitHub
parent 400ac447d8
commit 87f7c75057
6 changed files with 24 additions and 19 deletions

View File

@ -45,9 +45,12 @@ export const useTimelineActivities = ({
const activityIds = Array.from(
new Set(
activityTargets
?.map((activityTarget) => activityTarget.activityId)
.filter(isNonEmptyString)
.toSorted(sortByAscString),
? [
...activityTargets
.map((activityTarget) => activityTarget.activityId)
.filter(isNonEmptyString),
].sort(sortByAscString)
: [],
),
);