diff --git a/apps/ssb/tf-tab-connections.js b/apps/ssb/tf-tab-connections.js index 6d84807e..eb43803d 100644 --- a/apps/ssb/tf-tab-connections.js +++ b/apps/ssb/tf-tab-connections.js @@ -105,14 +105,16 @@ class TfTabConnectionsElement extends LitElement { } render_connection(connection) { - let requests = Object.values(connection.requests.reduce(function(accumulator, value) { - let key = `${value.name}:${Math.sign(value.request_number)}`; - if (!accumulator[key]) { - accumulator[key] = Object.assign({count: 0}, value); - } - accumulator[key].count++; - return accumulator; - }, {})); + let requests = Object.values( + connection.requests.reduce(function (accumulator, value) { + let key = `${value.name}:${Math.sign(value.request_number)}`; + if (!accumulator[key]) { + accumulator[key] = Object.assign({count: 0}, value); + } + accumulator[key].count++; + return accumulator; + }, {}) + ); return html`