Update 0BDFDB.plugin.js

This commit is contained in:
Mirco Wittrien 2023-04-16 11:15:44 +02:00
parent 6b9cc15a80
commit 0ff2580b64
1 changed files with 2 additions and 2 deletions

View File

@ -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",