Skip to content

Commit

Permalink
Fix data issues after temporarily setting an incorrect date (#132)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicolas Noé committed Mar 23, 2021
1 parent af988f3 commit 24516d3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/components/Home.vue
Original file line number Diff line number Diff line change
Expand Up @@ -464,8 +464,10 @@ export default Vue.extend({
this.loadData();
},
selectedDate: function (): void {
this.resetCopyUrlButtonText();
this.loadData();
if (moment(this.selectedDate, "YYYY-MM-DD").isValid() === true) { // Date can temporarily be incorrect while manually changing (typing in) the date field
this.resetCopyUrlButtonText();
this.loadData();
}
},
selectedIntervalInHours: function (): void {
this.resetCopyUrlButtonText();
Expand Down

0 comments on commit 24516d3

Please sign in to comment.