From 24516d32222b4f114f77c628df1587c25198b15e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20No=C3=A9?= Date: Tue, 23 Mar 2021 09:52:27 +0100 Subject: [PATCH] Fix data issues after temporarily setting an incorrect date (#132) --- src/components/Home.vue | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/components/Home.vue b/src/components/Home.vue index 4a4f138..692936c 100644 --- a/src/components/Home.vue +++ b/src/components/Home.vue @@ -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();