Skip to content

Commit

Permalink
Merge pull request #1798 from bcgov/hotfix/ALCS-2153
Browse files Browse the repository at this point in the history
Fix Error on Changing "Approx. Map Area" Field to Empty Value and Saving it
  • Loading branch information
Abradat authored Aug 1, 2024
2 parents feafb40 + 76a30d3 commit 6045964
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export class ApplicationParcelService {
this.overlayService.showSpinner();
const formattedDtos = updateDtos.map((e) => ({
...e,
mapAreaHectares: e.mapAreaHectares ? parseFloat(e.mapAreaHectares) : e.mapAreaHectares,
mapAreaHectares: e.mapAreaHectares ? parseFloat(e.mapAreaHectares) : null,
}));

const result = await firstValueFrom(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export class NoticeOfIntentParcelService {
this.overlayService.showSpinner();
const formattedDtos = updateDtos.map((e) => ({
...e,
mapAreaHectares: e.mapAreaHectares ? parseFloat(e.mapAreaHectares) : e.mapAreaHectares,
mapAreaHectares: e.mapAreaHectares ? parseFloat(e.mapAreaHectares) : null,
}));

const result = await firstValueFrom(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export class NotificationParcelService {
this.overlayService.showSpinner();
const formattedDtos = updateDtos.map((e) => ({
...e,
mapAreaHectares: e.mapAreaHectares ? parseFloat(e.mapAreaHectares) : e.mapAreaHectares,
mapAreaHectares: e.mapAreaHectares ? parseFloat(e.mapAreaHectares) : null,
}));

const result = await firstValueFrom(
Expand Down

0 comments on commit 6045964

Please sign in to comment.