[Vuejs]-How do i use spread operator for multiple vuex modules?

0👍

There is a typo, a comma is missing in "editPersonDialog" ["tasks"]. This means that tasks key is retrieved from editPersonDialog string. Since there’s no tasks in String.prototype, "editPersonDialog" ["tasks"] === undefined.

It should be:

computed: {

    ...mapGetters ("candidates", ["people"] ),

    ...mapGetters ("editPersonDialog", ["tasks"] ),

}

Leave a comment