Skip to content

Commit

Permalink
fix(application request): display documents (#1223)
Browse files Browse the repository at this point in the history
  • Loading branch information
manojava-gk authored Oct 30, 2024
1 parent f98df16 commit 300b880
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -192,9 +192,10 @@ const CompanyDetailOverlay = ({
key: '',
value: (
<>
{company?.documents && company.documents.length > 0 ? (
{selectedCompany?.documents &&
selectedCompany.documents.length > 0 ? (
<>
{company.documents.map(
{selectedCompany.documents.map(
(contract: {
documentId: string
documentType: string
Expand Down
2 changes: 2 additions & 0 deletions src/features/admin/registration/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

import type { PaginResult } from '@catena-x/portal-shared-components'
import { initialPaginResult, RequestState } from 'types/MainTypes'
import { type DocumentMapper } from '../applicationRequestApiSlice'

export const name = 'admin/registration'

Expand Down Expand Up @@ -63,6 +64,7 @@ export type CompanyDetail = {
uniqueIds?: Array<UniqueIdType>
countryAlpha2Code?: string
companyUser: Array<CompanyUserDetails>
documents: Array<DocumentMapper>
}

export type RegistrationRequestDocument = {
Expand Down

0 comments on commit 300b880

Please sign in to comment.