Skip to content
This repository was archived by the owner on Nov 17, 2020. It is now read-only.

Commit a5bdee4

Browse files
dcorbachokjnilsson
authored andcommitted
Copy by reference as the object is not used anymore
JS methods weren't copied usign assign, so indexOf could not be found. Giving up and allowing a copy by reference as we don't need that data anymore.
1 parent 2cab17a commit a5bdee4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

priv/www/js/formatters.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ function fmt_sync_state(queue) {
193193
function fmt_members(queue) {
194194
var res = '';
195195
var IsMayority = (queue.online.length >= (Math.floor(queue.members.length / 2) + 1));
196-
var followers = Object.assign({}, queue.online);
196+
var followers = queue.online;
197197
followers.splice(followers.indexOf(queue.node), 1);
198198
if (IsMayority) {
199199
res += ' <abbr title="Followers: ' + followers + '">+' +

0 commit comments

Comments
 (0)