Fix not displaying rooms when world isn't cached

This commit is contained in:
Natsumi
2021-06-21 14:42:08 +12:00
parent 106d214c8d
commit 64ee4f262c
+3 -1
View File
@@ -9035,6 +9035,9 @@ speechSynthesis.getVoices();
D.fileSize = 'Loading'; D.fileSize = 'Loading';
D.visible = true; D.visible = true;
D.loading = true; D.loading = true;
D.inCache = false;
D.cacheSize = 0;
D.rooms = [];
API.getCachedWorld({ API.getCachedWorld({
worldId: L.worldId worldId: L.worldId
}).catch((err) => { }).catch((err) => {
@@ -9046,7 +9049,6 @@ speechSynthesis.getVoices();
D.loading = false; D.loading = false;
D.ref = args.ref; D.ref = args.ref;
D.isFavorite = API.cachedFavoritesByObjectId.has(D.id); D.isFavorite = API.cachedFavoritesByObjectId.has(D.id);
D.rooms = [];
this.updateVRChatCache(); this.updateVRChatCache();
if (args.cache) { if (args.cache) {
API.getWorld(args.params); API.getWorld(args.params);