Skip to content

Commit

Permalink
Merge pull request #1797 from bcgov/hotfix/ALCS-2145
Browse files Browse the repository at this point in the history
Fix Submission PDF Including "Other" Documents with Non-Applicant Source
  • Loading branch information
Abradat authored Jul 29, 2024
2 parents 3d1406f + 0a966e3 commit feafb40
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -204,12 +204,13 @@ export class GenerateNoiSubmissionDocumentService {

const otherDocuments = documents.filter(
(e) =>
!e.typeCode ||
(!e.typeCode ||
[
DOCUMENT_TYPE.PHOTOGRAPH,
DOCUMENT_TYPE.PROFESSIONAL_REPORT,
DOCUMENT_TYPE.OTHER,
].includes((e.typeCode ?? 'undefined') as DOCUMENT_TYPE),
].includes((e.typeCode ?? 'undefined') as DOCUMENT_TYPE)) &&
e.document.source === DOCUMENT_SOURCE.APPLICANT,
);

const proposalMap = documents.filter(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -253,12 +253,13 @@ export class GenerateSubmissionDocumentService {

const otherDocuments = documents.filter(
(e) =>
!e.typeCode ||
(!e.typeCode ||
[
DOCUMENT_TYPE.PHOTOGRAPH,
DOCUMENT_TYPE.PROFESSIONAL_REPORT,
DOCUMENT_TYPE.OTHER,
].includes((e.typeCode ?? 'undefined') as DOCUMENT_TYPE),
].includes((e.typeCode ?? 'undefined') as DOCUMENT_TYPE)) &&
e.document.source === DOCUMENT_SOURCE.APPLICANT,
);

const proposalMap = documents.filter(
Expand Down

0 comments on commit feafb40

Please sign in to comment.