diff --git a/src/Discovery/index.tsx b/src/Discovery/index.tsx index 7bad999236..f810cacd91 100644 --- a/src/Discovery/index.tsx +++ b/src/Discovery/index.tsx @@ -109,7 +109,7 @@ const DiscoveryWithMDSBackend: React.FC<{ } else { let authMapping; if (isEnabled('discoveryUseAggWTS')) { - authMapping = props.userAggregateAuthMappings[(study.commons_url || hostnameWithSubdomain)]; + authMapping = props.userAggregateAuthMappings[(study.commons_url || hostnameWithSubdomain)] || {}; } else { authMapping = props.userAuthMapping; }