Vue-meta: Issue with accessing Vuex Computed Property

Created on 20 May 2019  路  2Comments  路  Source: nuxt/vue-meta

Hi,

I'm finding it difficult to access a computed properties from Vuex. I've tried everything I read from the examples and it still doesn't seem to work.

I am getting this error: Cannot read property 'job' of undefined

Code:

  computed: {
    ...mapGetters({
      job: 'oneJob'
    })
  },

  metaInfo: {
    title: this.job.title,
}

Any help would be greatly appreciated.

question

Most helpful comment

All 2 comments

Thank you so much!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

dystopiandev picture dystopiandev  路  6Comments

hvalcourtSerdy picture hvalcourtSerdy  路  3Comments

lwansbrough picture lwansbrough  路  7Comments

hurradieweltgehtunter picture hurradieweltgehtunter  路  4Comments

derz picture derz  路  3Comments