Update 0BDFDB.plugin.js
This commit is contained in:
parent
6b9cc15a80
commit
0ff2580b64
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue