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); };