From 879469c11d80e52a59de573b2f76cb691ec0c680 Mon Sep 17 00:00:00 2001 From: Sai Shanmukha Date: Tue, 20 Dec 2022 13:51:42 -0600 Subject: [PATCH] Add null check --- src/Discovery/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }