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
commit 616d210911
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

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