chore: fix hasOwnProperty usage
parent
46c613a808
commit
af69c3703f
|
@ -297,6 +297,7 @@ class Dygraph extends Component<Props, State> {
|
|||
const coloredDygraphSeries = {}
|
||||
|
||||
for (const seriesName in dygraphSeries) {
|
||||
// eslint-disable-next-line no-prototype-builtins
|
||||
if (dygraphSeries.hasOwnProperty(seriesName)) {
|
||||
const series = dygraphSeries[seriesName]
|
||||
const color = lineColors[dygraphSeriesKeys.indexOf(seriesName)]
|
||||
|
|
Loading…
Reference in New Issue