hur dur I am JS and do sorting in place

This commit is contained in:
MiniDigger | Martin 2022-06-20 21:27:35 +02:00
parent a80a184da5
commit 29a06466b1

View File

@ -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 [];
});