fix: date filters are now correclty converted
continuous-integration/drone/push Build is failing Details

This commit is contained in:
kolaente 2022-04-24 18:36:53 +02:00
parent 8257586c90
commit 87d4ceddb8
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 4 additions and 2 deletions

View File

@ -295,8 +295,10 @@ export default defineComponent({
},
methods: {
change() {
this.$emit('update:modelValue', this.params)
this.$emit('change', this.params)
const params = {...this.params}
params.filter_value = params.filter_value.map(v => v instanceof Date ? v.toISOString() : v)
this.$emit('update:modelValue', params)
this.$emit('change', params)
},
prepareFilters() {
this.prepareDone()