From 1cf6b35021264e76f255efdd92a3e39222705ad6 Mon Sep 17 00:00:00 2001 From: ajdj100 Date: Wed, 17 Dec 2025 10:13:39 -0500 Subject: [PATCH] prevented end date from ever going earlier than today --- ui/src/components/loa/loaForm.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/src/components/loa/loaForm.vue b/ui/src/components/loa/loaForm.vue index f17e033..c6f71c2 100644 --- a/ui/src/components/loa/loaForm.vue +++ b/ui/src/components/loa/loaForm.vue @@ -121,7 +121,7 @@ const minEndDate = computed(() => { if (values.start_date) { return new CalendarDate(values.start_date.getFullYear(), values.start_date.getMonth() + 1, values.start_date.getDate()) } else { - return null; + return today(getLocalTimeZone()); } }) @@ -141,7 +141,7 @@ const minStartDate = computed(() => { let start = new CalendarDate(endDateObj.getFullYear(), endDateObj.getMonth() + 1, endDateObj.getDate()) return td.compare(start) > 0 ? td : start; } else { - return null; + return today(getLocalTimeZone()); } })