Fix APM lodash imports (#78438)

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
This commit is contained in:
Nathan L Smith 2020-09-28 12:37:33 -05:00 committed by GitHub
parent 54a2c75097
commit 33e3aa2563
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 6 deletions

View file

@ -6,9 +6,7 @@
import cytoscape from 'cytoscape';
import dagre from 'cytoscape-dagre';
// Prefer importing entire lodash library, e.g. import { get } from "lodash"
// eslint-disable-next-line no-restricted-imports
import isEqual from 'lodash/isEqual';
import { isEqual } from 'lodash';
import React, {
createContext,
CSSProperties,

View file

@ -5,9 +5,7 @@
*/
import cytoscape from 'cytoscape';
// Prefer importing entire lodash library, e.g. import { get } from "lodash"
// eslint-disable-next-line no-restricted-imports
import debounce from 'lodash/debounce';
import { debounce } from 'lodash';
import { useEffect } from 'react';
import { EuiTheme, useUiTracker } from '../../../../../observability/public';
import { getAnimationOptions, getNodeHeight } from './cytoscapeOptions';