mirror of
https://github.com/flarum/core.git
synced 2025-07-21 00:31:17 +02:00
Fix "sort by" dropdown being empty
Must be something in the latest version of Chrome that caused this to start being a problem, because @franzliedke started experiencing it a few days ago, and I only just experienced it for the first time yesterday.
This commit is contained in:
@@ -213,7 +213,7 @@ export default class IndexPage extends Page {
|
|||||||
items.add('sort',
|
items.add('sort',
|
||||||
Select.component({
|
Select.component({
|
||||||
options: sortOptions,
|
options: sortOptions,
|
||||||
value: this.params().sort,
|
value: this.params().sort || Object.keys(app.cache.discussionList.sortMap())[0],
|
||||||
onchange: this.changeSort.bind(this)
|
onchange: this.changeSort.bind(this)
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
Reference in New Issue
Block a user