From 20a6133d73be9c40d4311db55e083e79b502132a Mon Sep 17 00:00:00 2001 From: Pavel Djundik Date: Wed, 28 Feb 2018 17:19:33 +0200 Subject: [PATCH] Remove unintentionally included lodash in client build --- client/js/condensed.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/client/js/condensed.js b/client/js/condensed.js index 73e3c2ee..7f716c52 100644 --- a/client/js/condensed.js +++ b/client/js/condensed.js @@ -1,6 +1,5 @@ "use strict"; -const _ = require("lodash"); const constants = require("./constants"); const templates = require("../views"); @@ -22,8 +21,8 @@ function getStoredTypes(condensed) { function updateText(condensed, addedTypes) { const obj = getStoredTypes(condensed); - _.forOwn(addedTypes, (count, type) => { - obj[type] += count; + Object.keys(addedTypes).map((type) => { + obj[type] += addedTypes[type]; condensed.data(type, obj[type]); });