diff --git a/portal-frontend/src/app/features/notice-of-intents/edit-submission/additional-information/additional-information.component.ts b/portal-frontend/src/app/features/notice-of-intents/edit-submission/additional-information/additional-information.component.ts index b7ab069478..c2b19eefad 100644 --- a/portal-frontend/src/app/features/notice-of-intents/edit-submission/additional-information/additional-information.component.ts +++ b/portal-frontend/src/app/features/notice-of-intents/edit-submission/additional-information/additional-information.component.ts @@ -172,6 +172,7 @@ export class AdditionalInformationComponent extends FilesStepComponent implement }); this.structuresForm = new FormGroup({}); + this.proposedStructures = []; for (const lot of noiSubmission.soilProposedStructures) { this.addControl(lot.type, lot.area); } @@ -191,8 +192,8 @@ export class AdditionalInformationComponent extends FilesStepComponent implement } async attachBuildingPlan(file: FileHandle) { - const res = await this.attachFile(file, DOCUMENT_TYPE.BUILDING_PLAN); - this.showBuildingPlanVirus = !res; + const attachmentSucceeded = await this.attachFile(file, DOCUMENT_TYPE.BUILDING_PLAN); + this.showBuildingPlanVirus = !attachmentSucceeded; } prepareStructureSpecificTextInputs() {