Whoops null check

This commit is contained in:
Natsumi
2024-03-19 12:49:17 +13:00
parent 30eb13548d
commit fb019088d4

View File

@@ -1169,7 +1169,7 @@ speechSynthesis.getVoices();
if (this.instance.ownerId === API.currentUser.id) {
this.canCloseInstance = true;
}
if (this.instance.ownerId.startsWith('grp_')) {
if (this.instance?.ownerId?.startsWith('grp_')) {
// check group perms
var groupId = this.instance.ownerId;
var group = API.cachedGroups.get(groupId);