0

I looked into another post describing that this should work, but I keep getting the errormessage: 'TypeError: Cannot convert undefined or null to object'

computed: {

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

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

}
Estus Flask
  • 206,104
  • 70
  • 425
  • 565

1 Answers1

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"] ),

}
Estus Flask
  • 206,104
  • 70
  • 425
  • 565