Skip to content

Commit f8eaa5f

Browse files
Version changes
1 parent bb98bad commit f8eaa5f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/v2/devtronStackManager/DevtronStackManager.utils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { ReactComponent as DiscoverIcon } from '../../../assets/icons/ic-compass
44
import { ReactComponent as DevtronIcon } from '../../../assets/icons/ic-devtron.svg'
55
import { ReactComponent as InstalledIcon } from '../../../assets/icons/ic-check.svg'
66
import MoreIntegrationsIcon from '../../../assets/img/ic-more-extensions.png'
7-
import { ModuleNameMap, TRIVY_TOOL_VERSION, URLS } from '../../../config'
7+
import { CLAIR_TOOL_VERSION_V2, CLAIR_TOOL_VERSION_V4, ModuleNameMap, TRIVY_TOOL_VERSION, URLS } from '../../../config'
88
import IndexStore from '../appDetails/index.store'
99
import { AppDetails, AppType } from '../appDetails/appDetails.type'
1010
import { handleError } from './DevtronStackManager.component'
@@ -93,7 +93,7 @@ export const handleEnableAction = async (
9393
) => {
9494
try {
9595
const toolVersion =
96-
moduleName === ModuleNameMap.SECURITY_TRIVY ? TRIVY_TOOL_VERSION : window?._env_?.CLAIR_TOOL_VERSION
96+
moduleName === ModuleNameMap.SECURITY_TRIVY ? TRIVY_TOOL_VERSION : (window._env_.CLAIR_TOOL_VERSION|| CLAIR_TOOL_VERSION_V4)
9797
const { result } = await executeModuleEnableAction(moduleName, toolVersion)
9898
if (result?.success) {
9999
setSuccessState(true)

0 commit comments

Comments
 (0)