From bad24e9dac7c68d0fce70fd4608712bd206d473c Mon Sep 17 00:00:00 2001 From: Mirco Wittrien Date: Tue, 11 Aug 2020 17:00:48 +0200 Subject: [PATCH] Update OwnerTag.plugin.js --- Plugins/OwnerTag/OwnerTag.plugin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Plugins/OwnerTag/OwnerTag.plugin.js b/Plugins/OwnerTag/OwnerTag.plugin.js index eeae3eaa99..61e1234f99 100644 --- a/Plugins/OwnerTag/OwnerTag.plugin.js +++ b/Plugins/OwnerTag/OwnerTag.plugin.js @@ -163,7 +163,7 @@ var OwnerTag = (_ => { } processMemberListItem (e) { - let userType = this.getUserType(e.instance.props.user, e.instance.props.channel.id); + let userType = this.getUserType(e.instance.props.user, e.instance.props.channel && e.instance.props.channel.id); if (userType && settings.addInMemberList) { this.injectOwnerTag(BDFDB.ReactUtils.getValue(e.returnvalue, "props.decorators.props.children"), e.instance.props.user, userType, 1, { tagClass: BDFDB.disCN.bottagmember