Make sure then_select_id is a number to call .toFixed()

(imported from commit 58635110c737ccb38e74cce8b4feb5d93dfbf5cc)
This commit is contained in:
Leo Franchi 2014-01-27 11:16:26 -05:00
parent a82bc689e8
commit 1fdb586c13
1 changed files with 2 additions and 2 deletions

View File

@ -149,11 +149,11 @@ exports.activate = function (operators, opts) {
trigger: 'unknown'
});
if (filter.has_operator("near")) {
opts.then_select_id = filter.operands("near")[0];
opts.then_select_id = parseInt(filter.operands("near")[0], 10);
opts.select_first_unread = false;
}
if (filter.has_operator("id")) {
opts.then_select_id = filter.operands("id")[0];
opts.then_select_id = parseInt(filter.operands("id")[0], 10);
opts.select_first_unread = false;
}