Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(connector-details): fix blank page #925

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
- Remove unnecessary import of Typography, Dialog and Circular Progress from mui and use those from shared-components
- Connector Management
- fetch details using api, added permissions and fixed error messages
- Fixed blank page issue on cliking on details
- App Release Process
- Integrated role deletion with BE api reponse
- Company Application Registraion Detail Overlay
Expand Down
12 changes: 9 additions & 3 deletions src/components/pages/EdcConnector/ConnectorDetailsOverlay.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,15 @@ const ConnectorDetailsOverlay = ({
{
key: t('content.edcconnector.details.technicalUser'),
value:
fetchConnectorDetails?.technicalUser === null
? t('content.edcconnector.details.noTechnicalUserAvailable')
: fetchConnectorDetails?.technicalUser,
fetchConnectorDetails?.technicalUser === null ? (
t('content.edcconnector.details.noTechnicalUserAvailable')
) : (
<a
href={`/techuserdetails/${fetchConnectorDetails?.technicalUser?.id}`}
>
{fetchConnectorDetails?.technicalUser?.name}
</a>
),
},
{
key: t('content.edcconnector.details.SdRegistration'),
Expand Down
7 changes: 6 additions & 1 deletion src/features/connector/connectorApiSlice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,12 @@ export interface ConnectorDetailsType {
hostId: string
hostCompanyName: string
connectorUrl: string
technicalUser: string
technicalUser: null | {
id: string
name: string
clientId: string
description: string
}
selfDescriptionDocumentId?: string | null
}

Expand Down
Loading