mirror of
https://github.com/flarum/framework.git
synced 2025-02-23 23:58:56 +08: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:
parent
41f48deddc
commit
1a95764909
@ -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)
|
||||
})
|
||||
);
|
||||
|
Loading…
x
Reference in New Issue
Block a user