mirror of
https://github.com/flarum/core.git
synced 2025-07-10 03:16:22 +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',
|
||||
Select.component({
|
||||
options: sortOptions,
|
||||
value: this.params().sort,
|
||||
value: this.params().sort || Object.keys(app.cache.discussionList.sortMap())[0],
|
||||
onchange: this.changeSort.bind(this)
|
||||
})
|
||||
);
|
||||
|
Reference in New Issue
Block a user