[Vuejs]-Vuex not returning object

0👍

greendemiurge was correct. The router was returning a string, so wrapping the id in parseInt() fixed the issues.

computed: {
            card() {
                var id = this.$route.params.card;
                return populateCard(
                    this.$store.getters.getCard(parseInt(id, 10))
                );
            }

Leave a comment