mirror of
https://github.com/zulip/zulip.git
synced 2025-11-16 03:41:58 +00:00
Make sure then_select_id is a number to call .toFixed()
(imported from commit 58635110c737ccb38e74cce8b4feb5d93dfbf5cc)
This commit is contained in:
@@ -149,11 +149,11 @@ exports.activate = function (operators, opts) {
|
|||||||
trigger: 'unknown'
|
trigger: 'unknown'
|
||||||
});
|
});
|
||||||
if (filter.has_operator("near")) {
|
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;
|
opts.select_first_unread = false;
|
||||||
}
|
}
|
||||||
if (filter.has_operator("id")) {
|
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;
|
opts.select_first_unread = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user