fix: revert back to not using the elastic endpoint for filtering, at least until we support tags in the search database

This commit is contained in:
Ian Morland 2022-11-21 12:37:52 +00:00
parent 7257d5fb34
commit f500d7f956
1 changed files with 2 additions and 2 deletions

View File

@ -8,8 +8,8 @@ export default function extendDiscussionState() {
override(DiscussionListState.prototype, 'loadPage', async function (this: DiscussionListState, original, page: number = 1) {
const preloaded = app.data.apiDocument || null;
// If existing payload is given fallback on native page.
if (preloaded) return original.call(this, page);
// If existing payload is given or no search is made, fallback on native page.
if (preloaded || !this.requestParams()?.filter?.q) return original.call(this, page);
const params = this.requestParams();
params.page = {