Remove unintentionally included lodash in client build
This commit is contained in:
parent
f282a973f8
commit
20a6133d73
@ -1,6 +1,5 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
const _ = require("lodash");
|
|
||||||
const constants = require("./constants");
|
const constants = require("./constants");
|
||||||
const templates = require("../views");
|
const templates = require("../views");
|
||||||
|
|
||||||
@ -22,8 +21,8 @@ function getStoredTypes(condensed) {
|
|||||||
function updateText(condensed, addedTypes) {
|
function updateText(condensed, addedTypes) {
|
||||||
const obj = getStoredTypes(condensed);
|
const obj = getStoredTypes(condensed);
|
||||||
|
|
||||||
_.forOwn(addedTypes, (count, type) => {
|
Object.keys(addedTypes).map((type) => {
|
||||||
obj[type] += count;
|
obj[type] += addedTypes[type];
|
||||||
condensed.data(type, obj[type]);
|
condensed.data(type, obj[type]);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user