fix: edit saved filter title

This commit is contained in:
kolaente 2021-11-23 20:16:39 +01:00
parent 591441ae20
commit 469a0ad837
No known key found for this signature in database
GPG key ID: F40E70337AB24C9B

View file

@ -61,6 +61,7 @@ import SavedFilterService from '@/services/savedFilter'
import ListModel from '@/models/list'
import Filters from '@/components/list/partials/filters.vue'
import {objectToSnakeCase} from '@/helpers/case'
import {CURRENT_LIST} from '../../../store/mutation-types'
export default {
name: 'filter-settings-edit',
@ -120,6 +121,8 @@ export default {
this.success({message: this.$t('filters.attributes.edit.success')})
this.filter = r
this.filters = objectToSnakeCase(this.filter.filters)
this.$store.commit(CURRENT_LIST, r)
this.setTitle(this.getListTitle(r))
this.$router.back()
})
.catch(e => this.error(e))