fix modpacks no loader (#5707)

This commit is contained in:
Truman Gao
2026-03-30 02:21:20 -07:00
committed by GitHub
parent 3a8561cf35
commit 4cd6c1a72d
3 changed files with 10 additions and 6 deletions

View File

@@ -714,8 +714,8 @@ const modpackLoaders = computed<string[]>(() => {
const noModpackLoader = computed(
() =>
project.value.project_type === 'modpack' &&
modpackLoaders.value.length === 1 &&
modpackLoaders.value[0] === 'minecraft',
((modpackLoaders.value.length === 1 && modpackLoaders.value[0] === 'minecraft') ||
modpackLoaders.value.length === 0),
)
const description = computed(