Skip to content

Commit

Permalink
Merge pull request #1969 from bcgov/bugfix/ALCS-2359
Browse files Browse the repository at this point in the history
Fix weird building plans behaviour
  • Loading branch information
trslater authored Nov 12, 2024
2 parents cfbcf7c + f628e1d commit 5681595
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand All @@ -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() {
Expand Down

0 comments on commit 5681595

Please sign in to comment.