diff --git a/javascript/src/components/Idps/idpsDataTable.js b/javascript/src/components/Idps/idpsDataTable.js index c2bc8ed..83e4cb6 100644 --- a/javascript/src/components/Idps/idpsDataTable.js +++ b/javascript/src/components/Idps/idpsDataTable.js @@ -94,7 +94,7 @@ const IdpsDataTable = ({ && loginsPerIpd.isFetched && loginsPerIpd.isSuccess && loginsPerIpd?.data?.map(idp => ({ - "Identity Provider Name": (cookies.userinfo == undefined && !!permissions?.actions?.identity_providers?.['view']) ? idp.name : createAnchorElement(idp.name, `/metrics/identity-providers/${idp.id}`), + "Identity Provider Name": (cookies.userinfo == undefined && !!permissions?.actions?.identity_providers?.['view']) ? idp.name : createAnchorElement(idp.name != '' ? idp.name : idp.entityid, `/metrics/identity-providers/${idp.id}`), "Identity Provider Identifier": idp.entityid, "Number of Logins": idp.count })) diff --git a/javascript/src/components/Sps/spsDataTable.js b/javascript/src/components/Sps/spsDataTable.js index b055335..1d2cf15 100644 --- a/javascript/src/components/Sps/spsDataTable.js +++ b/javascript/src/components/Sps/spsDataTable.js @@ -91,7 +91,7 @@ const SpsDataTable = ({ && !loginsPerSp.isFetching && loginsPerSp.isSuccess && loginsPerSp?.data?.map(sp => ({ - "Service Provider Name": (cookies.userinfo == undefined && !!permissions?.actions?.service_providers?.['view']) ? sp.name : createAnchorElement(sp.name, `/metrics/services/${sp.id}`), + "Service Provider Name": (cookies.userinfo == undefined && !!permissions?.actions?.service_providers?.['view']) ? sp.name : createAnchorElement(sp.name != '' ? sp.name : sp.identifier, `/metrics/services/${sp.id}`), "Service Provider Identifier": sp.identifier, "Number of Logins": sp.count }))