fix calling xhr still
This commit is contained in:
parent
8576579aa6
commit
050482dd4a
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -6,7 +6,7 @@ import DiscussionListState from 'flarum/forum/states/DiscussionListState';
|
||||||
|
|
||||||
export default function extendDiscussionState() {
|
export default function extendDiscussionState() {
|
||||||
override(DiscussionListState.prototype, 'loadPage', async function (this: DiscussionListState, original, page: number = 1) {
|
override(DiscussionListState.prototype, 'loadPage', async function (this: DiscussionListState, original, page: number = 1) {
|
||||||
const preloaded = app.preloadedApiDocument() || null;
|
const preloaded = app.data.apiDocument || null;
|
||||||
|
|
||||||
if (preloaded || !this.requestParams()?.filter?.q) return original.call(this, page);
|
if (preloaded || !this.requestParams()?.filter?.q) return original.call(this, page);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue