mirror of
https://github.com/HangarMC/Hangar.git
synced 2024-11-27 06:01:08 +08:00
hur dur I am JS and do sorting in place
This commit is contained in:
parent
a80a184da5
commit
29a06466b1
@ -69,7 +69,7 @@ const editingPage = ref(false);
|
||||
|
||||
const sortedDependencies = computed(() => {
|
||||
if (platform.value && projectVersion.value) {
|
||||
return projectVersion.value.pluginDependencies[platform.value.name.toUpperCase() as Platform].sort((a, b) => Number(b.required) - Number(a.required));
|
||||
return [...projectVersion.value.pluginDependencies[platform.value.name.toUpperCase() as Platform]].sort((a, b) => Number(b.required) - Number(a.required));
|
||||
}
|
||||
return [];
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user