From 3ac8c9b8c8e89b6e54c79279bad974b6dfc39aa3 Mon Sep 17 00:00:00 2001 From: Dimitris Zotos Date: Wed, 13 Mar 2019 13:07:07 +0200 Subject: [PATCH] Docs: Patch fetchItem method store access in Item.vue --- docs/guide/data.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/guide/data.md b/docs/guide/data.md index 966e5fd9..588ba543 100644 --- a/docs/guide/data.md +++ b/docs/guide/data.md @@ -131,7 +131,7 @@ export default { methods: { fetchItem () { // return the Promise from the action - return store.dispatch('fetchItem', this.$route.params.id) + return this.$store.dispatch('fetchItem', this.$route.params.id) } } }