fix: trying to get formatMessage with no current platform (#5397)

This commit is contained in:
Truman Gao
2026-02-19 10:40:53 -07:00
committed by GitHub
parent ec81bcb13c
commit 33ff2a0759

View File

@@ -1082,9 +1082,10 @@ const currentPlatform = computed(() => {
) )
}) })
const currentPlatformText = computed(() => const currentPlatformText = computed(() => {
formatMessage(getTagMessage(currentPlatform.value, 'loader')), if (!currentPlatform.value) return null
) return formatMessage(getTagMessage(currentPlatform.value, 'loader'))
})
const releaseVersions = computed(() => { const releaseVersions = computed(() => {
const set = new Set() const set = new Set()