fix calling xhr still

This commit is contained in:
Daniel Klabbers 2021-11-10 14:39:47 +01:00
parent 8576579aa6
commit 050482dd4a
3 changed files with 3 additions and 3 deletions

2
js/dist/forum.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -6,7 +6,7 @@ import DiscussionListState from 'flarum/forum/states/DiscussionListState';
export default function extendDiscussionState() {
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);