From fb019088d461be68dc9de0cfcfcd4189b467d17c Mon Sep 17 00:00:00 2001 From: Natsumi Date: Tue, 19 Mar 2024 12:49:17 +1300 Subject: [PATCH] Whoops null check --- html/src/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/html/src/app.js b/html/src/app.js index fb39f33c..f22ce4b9 100644 --- a/html/src/app.js +++ b/html/src/app.js @@ -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);