diff --git a/src/components/dialogs/AvatarDialog/AvatarDialog.vue b/src/components/dialogs/AvatarDialog/AvatarDialog.vue index d1fe116d..882f8f84 100644 --- a/src/components/dialogs/AvatarDialog/AvatarDialog.vue +++ b/src/components/dialogs/AvatarDialog/AvatarDialog.vue @@ -498,7 +498,7 @@

-1; i--) { const unityPackage = ref.unityPackages[i]; if (!unityPackage) { diff --git a/src/stores/avatar.js b/src/stores/avatar.js index 89798eeb..ce460f8f 100644 --- a/src/stores/avatar.js +++ b/src/stores/avatar.js @@ -58,7 +58,7 @@ export const useAvatarStore = defineStore('Avatar', () => { isPC: false, isQuest: false, isIos: false, - bundleSizes: [], + bundleSizes: {}, platformInfo: {}, galleryImages: [], galleryLoading: false, @@ -67,7 +67,7 @@ export const useAvatarStore = defineStore('Avatar', () => { cacheSize: '', cacheLocked: false, cachePath: '', - fileAnalysis: [] + fileAnalysis: {} }); const avatarHistory = ref([]); @@ -201,7 +201,7 @@ export const useAvatarStore = defineStore('Avatar', () => { D.cacheSize = ''; D.cacheLocked = false; D.cachePath = ''; - D.fileAnalysis = []; + D.fileAnalysis = {}; D.isQuestFallback = false; D.isPC = false; D.isQuest = false; @@ -209,7 +209,7 @@ export const useAvatarStore = defineStore('Avatar', () => { D.hasImposter = false; D.imposterVersion = ''; D.lastUpdated = ''; - D.bundleSizes = []; + D.bundleSizes = {}; D.platformInfo = {}; D.galleryImages = []; D.galleryLoading = true; @@ -261,7 +261,7 @@ export const useAvatarStore = defineStore('Avatar', () => { break; } } - if (D.bundleSizes.length === 0) { + if (Object.keys(D.bundleSizes).length === 0) { getBundleDateSize(ref).then((bundleSizes) => { D.bundleSizes = bundleSizes; }); diff --git a/src/stores/instance.js b/src/stores/instance.js index 264f67da..73b54d70 100644 --- a/src/stores/instance.js +++ b/src/stores/instance.js @@ -93,7 +93,7 @@ export const useInstanceStore = defineStore('Instance', () => { focusViewDisabled: false, inCache: false, cacheSize: '', - bundleSizes: [], + bundleSizes: {}, lastUpdated: '' }); @@ -172,7 +172,7 @@ export const useInstanceStore = defineStore('Instance', () => { focusViewDisabled: false, inCache: false, cacheSize: '', - bundleSizes: [], + bundleSizes: {}, lastUpdated: '' }; currentInstanceLocation.value = {}; @@ -187,7 +187,7 @@ export const useInstanceStore = defineStore('Instance', () => { focusViewDisabled: false, inCache: false, cacheSize: '', - bundleSizes: [], + bundleSizes: {}, lastUpdated: '' }; L = parseLocation(instanceId); diff --git a/src/stores/world.js b/src/stores/world.js index 2069fd79..ec4864cf 100644 --- a/src/stores/world.js +++ b/src/stores/world.js @@ -45,13 +45,13 @@ export const useWorldStore = defineStore('World', () => { focusViewDisabled: false, rooms: [], treeData: {}, - bundleSizes: [], + bundleSizes: {}, lastUpdated: '', inCache: false, cacheSize: '', cacheLocked: false, cachePath: '', - fileAnalysis: [], + fileAnalysis: {}, lastVisit: '', visitCount: 0, timeSpent: 0, @@ -101,14 +101,14 @@ export const useWorldStore = defineStore('World', () => { D.id = L.worldId; D.$location = L; D.treeData = {}; - D.bundleSizes = []; + D.bundleSizes = {}; D.lastUpdated = ''; D.loading = true; D.inCache = false; D.cacheSize = ''; D.cacheLocked = false; D.cachePath = ''; - D.fileAnalysis = []; + D.fileAnalysis = {}; D.rooms = []; D.lastVisit = ''; D.visitCount = 0; @@ -339,7 +339,7 @@ export const useWorldStore = defineStore('World', () => { }); } } - if (worldDialog.bundleSizes.length === 0) { + if (Object.keys(worldDialog.bundleSizes).length === 0) { getBundleDateSize(ref).then((bundleSizes) => { worldDialog.bundleSizes = bundleSizes; });