Replace lodash with specific implementations, #1389

This commit is contained in:
hikerpig
2020-05-07 21:32:58 +08:00
parent 8ef3aee7e7
commit 28ea68fe7f
3 changed files with 20 additions and 7 deletions

View File

@@ -1,5 +1,4 @@
import * as d3 from 'd3';
import _ from 'lodash';
import db from './gitGraphAst';
import gitGraphParser from './parser/gitGraph';
@@ -308,7 +307,7 @@ export const draw = function(txt, id, ver) {
// Parse the graph definition
parser.parse(txt + '\n');
config = _.assign(config, apiConfig, db.getOptions());
config = Object.assign(config, apiConfig, db.getOptions());
logger.debug('effective options', config);
const direction = db.getDirection();
allCommitsDict = db.getCommits();