Fix list not added to lists when duplicating

This commit is contained in:
kolaente 2020-11-12 20:02:40 +01:00
parent 3677ffd585
commit 50b1d378e0
No known key found for this signature in database
GPG key ID: F40E70337AB24C9B

View file

@ -269,6 +269,7 @@ export default {
this.listDuplicateService.create(listDuplicate)
.then(r => {
this.$store.commit('namespaces/addListToNamespace', r.list)
this.$store.commit('lists/addList', r.list)
this.success({message: 'The list was successfully duplicated.'}, this)
router.push({name: 'list.index', params: {listId: r.list.id}})
})