From 93aec0349d73c379b932c0a5384fd05d49513d36 Mon Sep 17 00:00:00 2001 From: ddl-rliu Date: Mon, 22 Jul 2024 18:40:45 -0700 Subject: [PATCH] Fix eslint Signed-off-by: ddl-rliu --- .../Executions/ExecutionDetails/ExecutionNodeURL.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/oss-console/src/components/Executions/ExecutionDetails/ExecutionNodeURL.tsx b/packages/oss-console/src/components/Executions/ExecutionDetails/ExecutionNodeURL.tsx index 61abdc590..48fd07283 100644 --- a/packages/oss-console/src/components/Executions/ExecutionDetails/ExecutionNodeURL.tsx +++ b/packages/oss-console/src/components/Executions/ExecutionDetails/ExecutionNodeURL.tsx @@ -3,6 +3,7 @@ import { Prism as SyntaxHighlighter } from 'react-syntax-highlighter'; import { prism } from 'react-syntax-highlighter/dist/esm/styles/prism'; import FileCopyIcon from '@mui/icons-material/FileCopy'; import copyToClipboard from 'copy-to-clipboard'; +import { env } from '@clients/common/environment'; import { errorBackgroundColor } from '@clients/theme/CommonStyles/constants'; import Button from '@mui/material/Button'; import Typography from '@mui/material/Typography'; @@ -11,7 +12,6 @@ import Grid from '@mui/material/Grid'; import Link from '@mui/material/Link'; import { RowExpander } from '../Tables/RowExpander'; import { ScrollableMonospaceText } from '../../common/ScrollableMonospaceText'; -import { env } from '@clients/common/environment'; const StyledScrollableMonospaceText = styled(ScrollableMonospaceText)(({ theme }) => ({ '&>div': { @@ -33,6 +33,7 @@ export const ExecutionNodeURL: React.FC<{ const ref = React.useRef(null); const config = + // eslint-disable-next-line no-nested-ternary env.CODE_SNIPPET_USE_AUTO_CONFIG === "true" ? 'Config.auto()' : isHttps