From 0ff2580b64079ada4c059ec04fd37063f4039d23 Mon Sep 17 00:00:00 2001 From: Mirco Wittrien Date: Sun, 16 Apr 2023 11:15:44 +0200 Subject: [PATCH] Update 0BDFDB.plugin.js --- Library/0BDFDB.plugin.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Library/0BDFDB.plugin.js b/Library/0BDFDB.plugin.js index 6c7062a7be..d8cdabd6da 100644 --- a/Library/0BDFDB.plugin.js +++ b/Library/0BDFDB.plugin.js @@ -3115,7 +3115,7 @@ module.exports = (_ => { BDFDB.ChannelUtils.rerenderAll = function (instant) { BDFDB.TimeUtils.clear(BDFDB.ChannelUtils.rerenderAll.timeout); BDFDB.ChannelUtils.rerenderAll.timeout = BDFDB.TimeUtils.timeout(_ => { - let ChannelsIns = BDFDB.ReactUtils.findOwner(document.querySelector(BDFDB.dotCN.guildchannels), {name: "Channels", unlimited: true}); + let ChannelsIns = BDFDB.ReactUtils.findOwner(document.querySelector(BDFDB.dotCN.guildchannels), {name: "ChannelsList", unlimited: true}); let ChannelsPrototype = BDFDB.ObjectUtils.get(ChannelsIns, `${BDFDB.ReactUtils.instanceKey}.type.prototype`); if (ChannelsIns && ChannelsPrototype) { BDFDB.PatchUtils.patch({name: "BDFDB ChannelUtils"}, ChannelsPrototype, "render", {after: e => { @@ -6525,7 +6525,7 @@ module.exports = (_ => { currentPage: this.state.offset + 1, pageSize: this.props.amount, maxVisiblePages: this.props.maxVisiblePages, - onPageChange: page => this.handleJump(isNaN(parseInt(page)) ? -1 : page - 1) + onPageChange: page => {this.handleJump(isNaN(parseInt(page)) ? -1 : page - 1);} }), this.props.jump && BDFDB.ReactUtils.createElement(Internal.LibraryComponents.TextInput, { type: "number",