mirror of
https://github.com/revanced/revanced-website.git
synced 2025-04-30 06:34:35 +02:00
fix: Remove unnecessary app version sorting (#239)
This commit is contained in:
parent
c54c69b5ac
commit
345158eb28
@ -53,16 +53,7 @@
|
|||||||
<!-- Should this be hardcoded to get the version of the first package? -->
|
<!-- Should this be hardcoded to get the version of the first package? -->
|
||||||
{#if patch.compatiblePackages?.length && patch.compatiblePackages[0].versions?.length}
|
{#if patch.compatiblePackages?.length && patch.compatiblePackages[0].versions?.length}
|
||||||
{#if showAllVersions}
|
{#if showAllVersions}
|
||||||
{#each patch.compatiblePackages[0].versions
|
{#each patch.compatiblePackages[0].versions.reverse() as version}
|
||||||
.slice()
|
|
||||||
.sort((a, b) => {
|
|
||||||
const coercedA = coerce(a);
|
|
||||||
const coercedB = coerce(b);
|
|
||||||
if (coercedA && coercedB) return compare(coercedA, coercedB);
|
|
||||||
else if (!coercedA && !coercedB) return 0;
|
|
||||||
else return !coercedA ? 1 : -1;
|
|
||||||
})
|
|
||||||
.reverse() as version}
|
|
||||||
<li class="patch-info">
|
<li class="patch-info">
|
||||||
🎯 {version}
|
🎯 {version}
|
||||||
</li>
|
</li>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user