Fix list not added to lists when duplicating
This commit is contained in:
parent
3677ffd585
commit
50b1d378e0
1 changed files with 1 additions and 0 deletions
|
@ -269,6 +269,7 @@ export default {
|
||||||
this.listDuplicateService.create(listDuplicate)
|
this.listDuplicateService.create(listDuplicate)
|
||||||
.then(r => {
|
.then(r => {
|
||||||
this.$store.commit('namespaces/addListToNamespace', r.list)
|
this.$store.commit('namespaces/addListToNamespace', r.list)
|
||||||
|
this.$store.commit('lists/addList', r.list)
|
||||||
this.success({message: 'The list was successfully duplicated.'}, this)
|
this.success({message: 'The list was successfully duplicated.'}, this)
|
||||||
router.push({name: 'list.index', params: {listId: r.list.id}})
|
router.push({name: 'list.index', params: {listId: r.list.id}})
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue