fix: load more not working when between filter is applied

This commit is contained in:
Shariq Ansari 2024-02-28 13:44:34 +05:30
parent 8f95d97c79
commit 1622410d74
2 changed files with 2 additions and 9 deletions

View File

@ -105,8 +105,8 @@ export default {
Popover,
},
data() {
const fromDate = this.value ? this.value.split(',')[0] : ''
const toDate = this.value ? this.value.split(',')[1] : ''
const fromDate = this.value ? this.value[0] : ''
const toDate = this.value ? this.value[1] : ''
return {
currentYear: null,
currentMonth: null,

View File

@ -182,13 +182,6 @@ function convertFilters(data, allFilters) {
value = ['equals', value[1] ? 'Yes' : 'No']
}
}
// if (value[0] === 'LIKE' || value[0] === 'NOT LIKE') {
// value[1] = value[1].replace(/%/g, '')
// }
if (value[0] === 'between' && Array.isArray(value[1])) {
value[1] = value[1].join(',')
}
if (field) {
f.push({