amount card hide when empty data
This commit is contained in:
@@ -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) => ({
|
||||
|
||||
Reference in New Issue
Block a user