Merge pull request #5614 from nbianca/fix_period

Try extracting time period only when the filter is 'top'.
This commit is contained in:
Guo Xiang Tan
2018-02-26 09:38:33 +08:00
committed by GitHub

View File

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