mirror of https://github.com/linkerd/linkerd2.git
Fix lodash error on namespace landing page (#2043)
Signed-off-by: Kevin Lingerfelt <kl@buoyant.io>
This commit is contained in:
parent
8639a8753f
commit
fcd7c9bf5c
|
@ -1,7 +1,8 @@
|
|||
{
|
||||
"plugins": [
|
||||
"react",
|
||||
"promise"
|
||||
"promise",
|
||||
"lodash"
|
||||
],
|
||||
"parser": "babel-eslint",
|
||||
"parserOptions": {
|
||||
|
@ -34,6 +35,9 @@
|
|||
"jsx-a11y/click-events-have-key-events": 0,
|
||||
"jsx-quotes": 2,
|
||||
"keyword-spacing": 2,
|
||||
"lodash/matches-shorthand": [2, "never"],
|
||||
"lodash/matches-prop-shorthand": [2, "never"],
|
||||
"lodash/prop-shorthand": [2, "never"],
|
||||
"no-console": [1, { "allow": ["warn", "error"] }], // minor offense
|
||||
"no-restricted-imports": [2, "lodash"],
|
||||
"no-trailing-spaces": 2,
|
||||
|
|
|
@ -94,7 +94,7 @@ class NamespaceLanding extends React.Component {
|
|||
// by default, show the first non-linkerd meshed namesapce
|
||||
// if no other meshed namespaces are found, show the linkerd namespace
|
||||
let defaultOpenNs = _find(namespaces, ns => ns.added && ns.name !== this.props.controllerNamespace);
|
||||
defaultOpenNs = defaultOpenNs || _find(namespaces, ['name', this.props.controllerNamespace]);
|
||||
defaultOpenNs = defaultOpenNs || _find(namespaces, ns => ns.name === this.props.controllerNamespace);
|
||||
|
||||
this.setState({
|
||||
namespaces,
|
||||
|
|
|
@ -40,6 +40,7 @@
|
|||
"eslint-loader": "2.0.0",
|
||||
"eslint-plugin-import": "2.12.0",
|
||||
"eslint-plugin-jsx-a11y": "6.0.3",
|
||||
"eslint-plugin-lodash": "5.1.0",
|
||||
"eslint-plugin-promise": "3.6.0",
|
||||
"eslint-plugin-react": "7.11.1",
|
||||
"file-loader": "2.0.0",
|
||||
|
|
|
@ -3137,6 +3137,13 @@ eslint-plugin-jsx-a11y@6.0.3:
|
|||
emoji-regex "^6.1.0"
|
||||
jsx-ast-utils "^2.0.0"
|
||||
|
||||
eslint-plugin-lodash@5.1.0:
|
||||
version "5.1.0"
|
||||
resolved "https://registry.yarnpkg.com/eslint-plugin-lodash/-/eslint-plugin-lodash-5.1.0.tgz#f7dc6c14f104cacb169a18d17c27d9c015a53924"
|
||||
integrity sha512-mMKmf1OMLS8VExtaHCcrwBmsYIiOVYEibnAFDzXrbJdtFGOcLEw37tryN/WGYKBiJy6nAIGC43i5Wh3KA9lO2g==
|
||||
dependencies:
|
||||
lodash "4.17.11"
|
||||
|
||||
eslint-plugin-promise@3.6.0:
|
||||
version "3.6.0"
|
||||
resolved "https://registry.yarnpkg.com/eslint-plugin-promise/-/eslint-plugin-promise-3.6.0.tgz#54b7658c8f454813dc2a870aff8152ec4969ba75"
|
||||
|
@ -5597,7 +5604,7 @@ lodash@4.17.10:
|
|||
resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.10.tgz#1b7793cf7259ea38fb3661d4d38b3260af8ae4e7"
|
||||
integrity sha512-UejweD1pDoXu+AD825lWwp4ZGtSwgnpZxb3JDViD7StjQz+Nb/6l093lx4OQ0foGWNRoc19mWy7BzL+UAK2iVg==
|
||||
|
||||
lodash@^4.13.1, lodash@^4.15.0, lodash@^4.17.10, lodash@^4.17.4, lodash@^4.17.5, lodash@^4.2.0, lodash@^4.3.0:
|
||||
lodash@4.17.11, lodash@^4.13.1, lodash@^4.15.0, lodash@^4.17.10, lodash@^4.17.4, lodash@^4.17.5, lodash@^4.2.0, lodash@^4.3.0:
|
||||
version "4.17.11"
|
||||
resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.11.tgz#b39ea6229ef607ecd89e2c8df12536891cac9b8d"
|
||||
integrity sha512-cQKh8igo5QUhZ7lg38DYWAxMvjSAKG0A8wGSVimP07SIUEK2UO+arSRKbRZWtelMtN5V0Hkwh5ryOto/SshYIg==
|
||||
|
|
Loading…
Reference in New Issue