mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Consolidated to a single lodash import. Corrected Lint failure
- Removed the additional import of flatten and updated as needed; - Changed the variabled `orderedEnv` to be a const; Signed-off-by: Steve Richards <srichards@mirantis.com>
This commit is contained in:
parent
d25512c817
commit
bc60d8b5ee
@ -1,7 +1,6 @@
|
||||
import "./pod-container-env.scss";
|
||||
|
||||
import React, { useEffect, useState } from "react";
|
||||
import flatten from "lodash/flatten";
|
||||
import { observer } from "mobx-react";
|
||||
import { Trans } from "@lingui/macro";
|
||||
import { IPodContainer, Secret } from "../../api/endpoints";
|
||||
@ -41,7 +40,7 @@ export const ContainerEnvironment = observer((props: Props) => {
|
||||
)
|
||||
|
||||
const renderEnv = () => {
|
||||
let orderedEnv = _.sortBy(env, 'name');
|
||||
const orderedEnv = _.sortBy(env, 'name');
|
||||
|
||||
return orderedEnv.map(variable => {
|
||||
const { name, value, valueFrom } = variable
|
||||
@ -92,7 +91,7 @@ export const ContainerEnvironment = observer((props: Props) => {
|
||||
</div>
|
||||
))
|
||||
})
|
||||
return flatten(envVars)
|
||||
return _.flatten(envVars)
|
||||
}
|
||||
|
||||
return (
|
||||
|
||||
Loading…
Reference in New Issue
Block a user