Skip to content

Commit

Permalink
Fix: ala vaadi suunnittelusopimusta (#430)
Browse files Browse the repository at this point in the history
* Hyväksy, että moreInfoElementsissä suunnitteluSopimus voi olla määrittelemättä.
  • Loading branch information
ValheKouneli committed Oct 7, 2022
1 parent 3a61c2f commit bfd9aa1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/src/asiakirja/suunnittelunAloitus/commonPdf.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,12 +91,12 @@ export abstract class CommonPdf extends AbstractPdf {

protected moreInfoElements(
yhteystiedot: Yhteystieto[] | null | undefined,
suunnitteluSopimus?: SuunnitteluSopimusJulkaisu,
suunnitteluSopimus?: SuunnitteluSopimusJulkaisu | null | undefined,
yhteysHenkilot?: string[] | undefined | null,
showOrganization = true
): PDFKit.PDFStructureElementChild[] {
return this.kutsuAdapter
.yhteystiedot(yhteystiedot, suunnitteluSopimus, yhteysHenkilot)
.yhteystiedot(yhteystiedot, suunnitteluSopimus || undefined, yhteysHenkilot)
.map(({ organisaatio, etunimi, sukunimi, puhelinnumero, sahkoposti, titteli }) => {
return () => {
const noSpamSahkoposti = sahkoposti.replace(/@/g, "(at)");
Expand Down

0 comments on commit bfd9aa1

Please sign in to comment.