Skip to content

Commit

Permalink
fix: GEO-1270 Fix order of operations for date loading (#901)
Browse files Browse the repository at this point in the history
Co-authored-by: jer3k <99355997+jer3k@users.noreply.github.com>
  • Loading branch information
jerekm and jerekm authored Feb 5, 2025
1 parent bad0d7a commit 2b4f421
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions frontend/src/components/InputForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@
</v-row>

<v-row>
<!-- Reporting Year -->
<v-col cols="12" sm="4" md="3">
<v-row>
<v-col>
Expand Down Expand Up @@ -237,6 +238,7 @@
</v-row>
</v-col>
<v-col cols="12" md="9">
<!-- Time Period -->
<v-row>
<v-col class="pb-0">
<div class="text-body-1 font-weight-bold">
Expand Down Expand Up @@ -993,16 +995,16 @@ export default {
? this.reportData.reporting_year
: parseInt(this.reportData.reporting_year); //api expects this to be a number, not a string.
this.reportingYearOptions = [this.reportYear];
this.startMonth = LocalDate.parse(
this.reportData.report_start_date,
).monthValue();
this.startYear = LocalDate.parse(
this.reportData.report_start_date,
).year();
this.startMonth = LocalDate.parse(
this.reportData.report_start_date,
).monthValue();
this.endYear = LocalDate.parse(this.reportData.report_end_date).year();
this.endMonth = LocalDate.parse(
this.reportData.report_end_date,
).monthValue();
this.endYear = LocalDate.parse(this.reportData.report_end_date).year();
this.dataConstraints = this.reportData.data_constraints;
this.reportStatus = this.reportData.report_status;
},
Expand Down

0 comments on commit 2b4f421

Please sign in to comment.