fix: add optional chaining for friend location tag check

This commit is contained in:
pa
2025-10-04 21:26:47 +09:00
committed by Natsumi
parent 877ccc66d3
commit dab93b1bfc

View File

@@ -324,7 +324,7 @@ export const useVrcxStore = defineStore('Vrcx', () => {
instanceStore.cachedInstances.forEach((ref, id) => {
if (
[...friendStore.friends.values()].some(
(f) => f.$location.tag === id
(f) => f.$location?.tag === id
)
) {
return;