1
0
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:
Toby Zerner
2016-03-18 09:37:25 +10:30
parent cf63e063ba
commit 65f2d84d55

View File

@ -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)
})
);