From 1d201ccb8f6c01d877e19a1a872475be6901d539 Mon Sep 17 00:00:00 2001 From: Eshank Vaish <48060426+eshankvaish@users.noreply.github.com> Date: Wed, 13 Nov 2024 16:03:49 +0530 Subject: [PATCH] fix: hide config diff for external secret --- package-lock.json | 4 ++-- package.json | 2 +- .../DeploymentConfigDiff/DeploymentConfigDiff.utils.tsx | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package-lock.json b/package-lock.json index 4a10229ea..0ce944ab2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@devtron-labs/devtron-fe-common-lib", - "version": "0.6.0-patch-1", + "version": "0.6.0-patch-2", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@devtron-labs/devtron-fe-common-lib", - "version": "0.6.0-patch-1", + "version": "0.6.0-patch-2", "license": "ISC", "dependencies": { "@types/react-dates": "^21.8.6", diff --git a/package.json b/package.json index 5678e1dad..b4b23a052 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@devtron-labs/devtron-fe-common-lib", - "version": "0.6.0-patch-1", + "version": "0.6.0-patch-2", "description": "Supporting common component library", "type": "module", "main": "dist/index.js", diff --git a/src/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiff.utils.tsx b/src/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiff.utils.tsx index 9329419b3..a32b695d3 100644 --- a/src/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiff.utils.tsx +++ b/src/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiff.utils.tsx @@ -232,8 +232,8 @@ const getCodeEditorData = ( const { compareToObfuscatedData, compareWithObfuscatedData } = getObfuscatedData( compareToConfigData ?? {}, compareWithConfigData ?? {}, - compareToIsAdmin, - compareWithIsAdmin, + compareToIsAdmin || compareToValue?.external, + compareWithIsAdmin || compareWithValue?.external, ) compareToCodeEditorData = {