mirror of
https://github.com/flarum/core.git
synced 2025-08-08 01:16:52 +02:00
fix: use ItemList get method
This commit is contained in:
@@ -17,7 +17,7 @@ export default class DiscussionListState extends PaginatedListState<Discussion>
|
|||||||
requestParams() {
|
requestParams() {
|
||||||
const params: any = { include: ['user', 'lastPostedUser'], filter: this.params.filter || {} };
|
const params: any = { include: ['user', 'lastPostedUser'], filter: this.params.filter || {} };
|
||||||
|
|
||||||
params.sort = this.sortMap()[this.params.sort];
|
params.sort = this.sortMap().get(this.params.sort);
|
||||||
|
|
||||||
if (this.params.q) {
|
if (this.params.q) {
|
||||||
params.filter.q = this.params.q;
|
params.filter.q = this.params.q;
|
||||||
|
Reference in New Issue
Block a user