From 35fcd31a20591d75867c4df550aa03f97a8e1dd8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Z=C3=BCrcher?= Date: Thu, 12 Feb 2026 16:25:44 +0100 Subject: [PATCH] amount card hide when empty data --- src/pages/ReportPage.vue | 3 +++ 1 file changed, 3 insertions(+) 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) => ({