mirror of
https://github.com/discourse/discourse.git
synced 2025-09-04 08:47:37 +08:00
Merge pull request #5614 from nbianca/fix_period
Try extracting time period only when the filter is 'top'.
This commit is contained in:
commit
616d210911
1 changed files with 1 additions and 1 deletions
|
@ -91,7 +91,7 @@ export default function(filter, extras) {
|
|||
const topicOpts = {
|
||||
model,
|
||||
category: null,
|
||||
period: model.get('for_period') || (filter.indexOf('/') > 0 ? filter.split('/')[1] : ''),
|
||||
period: model.get('for_period') || (filter.indexOf('top/') >= 0 ? filter.split('/')[1] : ''),
|
||||
selected: [],
|
||||
expandGloballyPinned: true
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue