This commit is contained in:
Mirco Wittrien 2019-11-24 22:16:05 +01:00
parent 6e558ce5a7
commit 670fd63242
2 changed files with 2 additions and 4 deletions

View File

@ -6776,7 +6776,7 @@ var BDFDB = {
if (typeof this.props.setRef == "function") this.props.setRef(this.props.guild.id, e)
}
render() {
if (!this.props.guild) return;
if (!this.props.guild) return null;
this.props.selectedChannelId = LibraryModules.LastChannelStore.getChannelId(this.props.guild.id);
this.props.selected = this.props.state ? LibraryModules.LastGuildStore.getGuildId() == this.props.guild.id : false;
this.props.unread = this.props.state ? LibraryModules.UnreadGuildUtils.hasUnread(this.props.guild.id) : false;
@ -6840,8 +6840,6 @@ var BDFDB = {
};
InternalBDFDB.setDefaultProps(LibraryComponents.GuildComponents.Guild, {menu:true, tooltip:true, state:false, draggable:false, sorting:false});
LibraryComponents.GuildComponents.GuildDropTarget = BDFDB.ModuleUtils.findByName("GuildDropTarget");
LibraryComponents.GuildComponents.Icon = BDFDB.ModuleUtils.findByName("GuildIconWrapper");
LibraryComponents.GuildComponents.Pill = BDFDB.ModuleUtils.findByString("opacity:1,height:", "20:8", "default.item");

File diff suppressed because one or more lines are too long