REFACTOR: Remove _.clone which is not deep

This commit is contained in:
Robin Ward
2020-09-01 16:42:22 -04:00
parent c2cfa62000
commit 2d56663fc4
3 changed files with 8 additions and 5 deletions

View File

@ -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) {