Skip to content

Commit

Permalink
fix: Prevent fail due to the file index is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
ci010 committed May 9, 2024
1 parent 491204b commit deb4e39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xmcl-keystone-ui/src/views/StoreEntry.vue
Expand Up @@ -335,7 +335,7 @@ const recentMinecraftItems = computed(() => {
type: 'curseforge',
title: r.name,
image: r.logo.thumbnailUrl,
gameVersion: r.latestFilesIndexes[0].gameVersion,
gameVersion: r.latestFilesIndexes[0]?.gameVersion,
categories: r.categories.map(c => tCategory(c.name)),
})),
)
Expand Down

0 comments on commit deb4e39

Please sign in to comment.