Whoops null check

This commit is contained in:
Natsumi
2024-03-19 12:49:17 +13:00
parent 30eb13548d
commit fb019088d4
+1 -1
View File
@@ -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);