Skip to content

Commit

Permalink
fix: Cannot install version due to the version list is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
ci010 committed Mar 29, 2024
1 parent 2ca93d7 commit f9be5d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xmcl-keystone-ui/src/composables/instanceVersionInstall.ts
Expand Up @@ -27,7 +27,7 @@ export function useInstanceVersionInstall(versions: Ref<LocalVersionHeader[]>) {

const getCacheOrFetch = async <T>(key: string, fetcher: () => Promise<T>) => {
const cached = cache.get(key)
if (cached) {
if (cached && cached.data?.data) {
return cached.data.data as T
}
const data = await fetcher()
Expand Down

0 comments on commit f9be5d1

Please sign in to comment.