From 3c78e1da69a1a60491c62188dd8f1f5e6c0d9a50 Mon Sep 17 00:00:00 2001 From: Natsumi Date: Thu, 9 Oct 2025 20:00:20 +1300 Subject: [PATCH] Get group instances when not in group --- src/stores/group.js | 56 ++++++++++++++++++++------------------------- 1 file changed, 25 insertions(+), 31 deletions(-) diff --git a/src/stores/group.js b/src/stores/group.js index f2c21cda..c644ad53 100644 --- a/src/stores/group.js +++ b/src/stores/group.js @@ -471,38 +471,32 @@ export const useGroupStore = defineStore('Group', () => { groupId }); D.isGetGroupDialogGroupLoading = true; - if (D.inGroup) { - groupRequest - .getGroupInstances({ - groupId - }) - .then((args) => { - if ( - state.groupDialog.id === args.params.groupId - ) { - instanceStore.applyGroupDialogInstances( - args.json.instances - ); - } - for (const json of args.json.instances) { - instanceStore.applyInstance(json); - worldRequest - .getCachedWorld({ - worldId: json.world.id - }) - .then((args1) => { - json.world = args1.ref; - return args1; - }); - // get queue size etc - instanceRequest.getInstance({ - worldId: json.worldId, - instanceId: json.instanceId + groupRequest + .getGroupInstances({ + groupId + }) + .then((args) => { + if (state.groupDialog.id === args.params.groupId) { + instanceStore.applyGroupDialogInstances( + args.json.instances + ); + } + for (const json of args.json.instances) { + instanceStore.applyInstance(json); + worldRequest + .getCachedWorld({ + worldId: json.world.id + }) + .then((args1) => { + json.world = args1.ref; }); - } - // }); - }); - } + // get queue size etc + instanceRequest.getInstance({ + worldId: json.worldId, + instanceId: json.instanceId + }); + } + }); } nextTick(() => (D.isGetGroupDialogGroupLoading = false)); return args;