From 5dbce6b21ba06ed857dd77af866ad342d12e905f Mon Sep 17 00:00:00 2001 From: Thisal Tennakoon Date: Mon, 3 Jul 2023 12:35:11 +0530 Subject: [PATCH] Fixed the issue in updating Key Manager after Advanced Configuration changes --- .../source/src/app/components/KeyManagers/KeyValidation.jsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/portals/admin/src/main/webapp/source/src/app/components/KeyManagers/KeyValidation.jsx b/portals/admin/src/main/webapp/source/src/app/components/KeyManagers/KeyValidation.jsx index 4080bbd61c7..a21a2829042 100644 --- a/portals/admin/src/main/webapp/source/src/app/components/KeyManagers/KeyValidation.jsx +++ b/portals/admin/src/main/webapp/source/src/app/components/KeyManagers/KeyValidation.jsx @@ -138,9 +138,9 @@ export default function KeyValidation(props) { setjwtValue(newjwt); }; const onDelete = (claimKey) => { - const newMapping = { ...tokenValidation.value }; - if (newMapping.body) { - delete newMapping.body[claimKey]; + const newMapping = { ...tokenValidation }; + if (newMapping.value.body) { + delete newMapping.value.body[claimKey]; } setTokenValidation(newMapping); };