Skip to content

Commit 6a00545

Browse files
potapovDimjerairrest
authored andcommitted
remove lodash/find import, onElementsClick from render and redraw from renderChart (#332)
1 parent af91828 commit 6a00545

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/index.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import React from 'react';
22
import PropTypes from 'prop-types';
33
import Chart from 'chart.js';
44
import isEqual from 'lodash/isEqual';
5-
import find from 'lodash/find';
65
import keyBy from 'lodash/keyBy';
76

87
const NODE_ENV = (typeof process !== 'undefined') && process.env && process.env.NODE_ENV;
@@ -223,7 +222,7 @@ class ChartComponent extends React.Component {
223222
}
224223

225224
renderChart() {
226-
const {options, legend, type, redraw, plugins} = this.props;
225+
const {options, legend, type, plugins} = this.props;
227226
const node = this.element;
228227
const data = this.memoizeDataProps();
229228

@@ -260,7 +259,7 @@ class ChartComponent extends React.Component {
260259
}
261260

262261
render() {
263-
const {height, width, onElementsClick, id} = this.props;
262+
const {height, width, id} = this.props;
264263

265264
return (
266265
<canvas

0 commit comments

Comments
 (0)