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 = {
|
const topicOpts = {
|
||||||
model,
|
model,
|
||||||
category: null,
|
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: [],
|
selected: [],
|
||||||
expandGloballyPinned: true
|
expandGloballyPinned: true
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue