1
0
mirror of https://github.com/flarum/core.git synced 2025-08-06 08:27:42 +02:00

fix: use ItemList get method

This commit is contained in:
David Wheatley
2021-10-27 18:41:53 +02:00
committed by GitHub
parent 69b1dc7103
commit 2c801711bb

View File

@@ -17,7 +17,7 @@ export default class DiscussionListState extends PaginatedListState<Discussion>
requestParams() {
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) {
params.filter.q = this.params.q;