amount card hide when empty data
This commit is contained in:
@@ -165,6 +165,8 @@ function loadSettings() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
function applyDateChoice() {
|
function applyDateChoice() {
|
||||||
|
amounts.value = [];
|
||||||
|
|
||||||
loading.value = true;
|
loading.value = true;
|
||||||
dropdownRef.value.hide();
|
dropdownRef.value.hide();
|
||||||
|
|
||||||
@@ -213,6 +215,7 @@ function applyDateChoice() {
|
|||||||
'Sunday',
|
'Sunday',
|
||||||
'total',
|
'total',
|
||||||
];
|
];
|
||||||
|
|
||||||
amounts.value = days
|
amounts.value = days
|
||||||
.filter((day) => data.data[day]) // Only include days that exist in the response
|
.filter((day) => data.data[day]) // Only include days that exist in the response
|
||||||
.map((day) => ({
|
.map((day) => ({
|
||||||
|
|||||||
Reference in New Issue
Block a user