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
|
@ -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…
Reference in New Issue