diff --git a/src/pages/ReportPage.vue b/src/pages/ReportPage.vue index 8adbf52..87a495c 100644 --- a/src/pages/ReportPage.vue +++ b/src/pages/ReportPage.vue @@ -165,6 +165,8 @@ function loadSettings() { } } function applyDateChoice() { + amounts.value = []; + loading.value = true; dropdownRef.value.hide(); @@ -213,6 +215,7 @@ function applyDateChoice() { 'Sunday', 'total', ]; + amounts.value = days .filter((day) => data.data[day]) // Only include days that exist in the response .map((day) => ({