mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 21:43:21 +00:00
js: Replace [...x] with Array.from(x).
Babel strict generates more code for [...x] than you’d like, while Babel loose mode assumes x is an array. Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
This commit is contained in:
committed by
Tim Abbott
parent
437961fba3
commit
de3146c137
@@ -44,7 +44,7 @@ exports.poll_data_holder = function (is_my_poll, question, options) {
|
||||
const options = [];
|
||||
|
||||
for (const [key, obj] of key_to_option) {
|
||||
const voters = [...obj.votes.keys()];
|
||||
const voters = Array.from(obj.votes.keys());
|
||||
const current_user_vote = _.contains(voters, me);
|
||||
|
||||
options.push({
|
||||
|
||||
Reference in New Issue
Block a user