Skip to content

Commit cb1561f

Browse files
committed
Merge branch 'dev' of https://github.com/johnduprey/CIPP into dev
2 parents 526b262 + 4fc3215 commit cb1561f

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

src/views/tenant/administration/TenantLookup.jsx

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -122,25 +122,27 @@ const GraphExplorer = () => {
122122
<CCol sm={12} md={4} className="mb-3">
123123
<p className="fw-lighter">Tenant Name</p>
124124
{graphrequest.isFetching && <Skeleton />}
125-
{graphrequest.data?.GraphRequest.displayName}
125+
{graphrequest.data?.GraphRequest?.displayName
126+
? graphrequest.data?.GraphRequest?.displayName
127+
: 'Could not find tenant - Is this a M365 domain name?'}
126128
</CCol>
127129
<CCol sm={12} md={4} className="mb-3">
128130
<p className="fw-lighter">Tenant ID</p>
129131
{graphrequest.isFetching && <Skeleton />}
130-
{graphrequest.data?.GraphRequest.tenantId}
132+
{graphrequest.data?.GraphRequest?.tenantId}
131133
</CCol>
132134
<CCol sm={12} md={4} className="mb-3">
133135
<p className="fw-lighter">Default Domain Name</p>
134136
{graphrequest.isFetching && <Skeleton />}
135-
{graphrequest.data?.GraphRequest.defaultDomainName}
137+
{graphrequest.data?.GraphRequest?.defaultDomainName}
136138
</CCol>
137139
</CRow>
138140
<CRow>
139141
<CCol sm={12} md={4} className="mb-3">
140142
<p className="fw-lighter">Tenant Brand Name</p>
141143
{graphrequest.isFetching && <Skeleton />}
142-
{graphrequest.data?.GraphRequest.federationBrandName}
143-
{graphrequest.data?.GraphRequest.federationBrandName === null &&
144+
{graphrequest.data?.GraphRequest?.federationBrandName}
145+
{graphrequest.data?.GraphRequest?.federationBrandName === null &&
144146
'No brand name set'}
145147
</CCol>
146148
<CCol sm={8} md={8} className="mb-3">

0 commit comments

Comments
 (0)