fix error
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<div v-if="project.versions.length > 0" class="flex flex-col gap-3">
|
<div v-if="project.versions?.length > 0" class="flex flex-col gap-3">
|
||||||
<h2 class="text-lg m-0">{{ formatMessage(messages.title) }}</h2>
|
<h2 class="text-lg m-0">{{ formatMessage(messages.title) }}</h2>
|
||||||
<section class="flex flex-col gap-2">
|
<section class="flex flex-col gap-2">
|
||||||
<h3 class="text-primary text-base m-0">{{ formatMessage(messages.minecraftJava) }}</h3>
|
<h3 class="text-primary text-base m-0">{{ formatMessage(messages.minecraftJava) }}</h3>
|
||||||
@@ -142,9 +142,9 @@ const props = defineProps<{
|
|||||||
const noModpackLoader = computed(
|
const noModpackLoader = computed(
|
||||||
() =>
|
() =>
|
||||||
(props.projectV3?.project_types.includes('modpack') &&
|
(props.projectV3?.project_types.includes('modpack') &&
|
||||||
props.projectV3?.mrpack_loaders.length === 1 &&
|
props.projectV3?.mrpack_loaders?.length === 1 &&
|
||||||
props.projectV3?.mrpack_loaders[0] === 'minecraft') ||
|
props.projectV3?.mrpack_loaders?.[0] === 'minecraft') ||
|
||||||
props.projectV3?.mrpack_loaders.length === 0,
|
props.projectV3?.mrpack_loaders?.length === 0,
|
||||||
)
|
)
|
||||||
|
|
||||||
const showEnvironments = computed(
|
const showEnvironments = computed(
|
||||||
|
|||||||
Reference in New Issue
Block a user