Reset data before filtering
This commit is contained in:
@ -354,7 +354,13 @@ const onExporting = (e: any) => {
|
||||
}
|
||||
}
|
||||
|
||||
const resetData = () => {
|
||||
data.value = []
|
||||
dataSub.value = []
|
||||
}
|
||||
|
||||
const filterData = async (params: any) => {
|
||||
resetData()
|
||||
const { regional, ulp, uid, up3, bulan, tahun } = params
|
||||
lastMonth.value = bulan.id == 1 ? 12 : bulan.id - 1
|
||||
lastYearMoM.value = bulan.id == 1 ? tahun.id - 1 : tahun.id
|
||||
|
Reference in New Issue
Block a user