Try extracting time period only when the filter is 'top'.

This commit is contained in:
Bianca Nenciu 2018-02-22 23:56:37 +02:00
parent 6b67192d99
commit 0e3e5f25a6

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