computed property returns empty array

Because your reduce does not add items into the array but creating new properties on Array object – you can’t use a string as an index into an array…

What you probably want is to return Object from your groupedTemplates computed…

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top