mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-05-01 20:53:45 +02:00
Whoops null check
This commit is contained in:
+1
-1
@@ -1169,7 +1169,7 @@ speechSynthesis.getVoices();
|
|||||||
if (this.instance.ownerId === API.currentUser.id) {
|
if (this.instance.ownerId === API.currentUser.id) {
|
||||||
this.canCloseInstance = true;
|
this.canCloseInstance = true;
|
||||||
}
|
}
|
||||||
if (this.instance.ownerId.startsWith('grp_')) {
|
if (this.instance?.ownerId?.startsWith('grp_')) {
|
||||||
// check group perms
|
// check group perms
|
||||||
var groupId = this.instance.ownerId;
|
var groupId = this.instance.ownerId;
|
||||||
var group = API.cachedGroups.get(groupId);
|
var group = API.cachedGroups.get(groupId);
|
||||||
|
|||||||
Reference in New Issue
Block a user