mirror of
https://github.com/discourse/discourse.git
synced 2025-05-24 03:36:18 +08:00
REFACTOR: Remove _.clone
which is not deep
This commit is contained in:
@ -211,7 +211,7 @@ createWidget("discourse-poll-standard-results", {
|
||||
const voters = poll.get("voters");
|
||||
const isPublic = poll.get("public");
|
||||
|
||||
const ordered = _.clone(options).sort((a, b) => {
|
||||
const ordered = [...options].sort((a, b) => {
|
||||
if (a.votes < b.votes) {
|
||||
return 1;
|
||||
} else if (a.votes === b.votes) {
|
||||
|
Reference in New Issue
Block a user