From 51cebfa34a62cce14a0bbd7369f262d04c157e7f Mon Sep 17 00:00:00 2001 From: Ramon Wenger Date: Mon, 22 Oct 2018 20:34:42 +0200 Subject: [PATCH] Fix content block refresh bug --- .../components/content-block-form/EditContentBlockWizard.vue | 2 +- .../src/components/content-block-form/NewContentBlockWizard.vue | 2 +- client/src/store/index.js | 1 - 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/client/src/components/content-block-form/EditContentBlockWizard.vue b/client/src/components/content-block-form/EditContentBlockWizard.vue index 7b13dff3..f65a70e9 100644 --- a/client/src/components/content-block-form/EditContentBlockWizard.vue +++ b/client/src/components/content-block-form/EditContentBlockWizard.vue @@ -42,7 +42,7 @@ refetchQueries: [{ query: MODULE_DETAILS_QUERY, variables: { - slug: store.state.moduleSlug + slug: this.$route.params.slug } }] }).then(() => { diff --git a/client/src/components/content-block-form/NewContentBlockWizard.vue b/client/src/components/content-block-form/NewContentBlockWizard.vue index ad482278..71953813 100644 --- a/client/src/components/content-block-form/NewContentBlockWizard.vue +++ b/client/src/components/content-block-form/NewContentBlockWizard.vue @@ -41,7 +41,7 @@ refetchQueries: [{ query: MODULE_DETAILS_QUERY, variables: { - slug: store.state.moduleSlug + slug: this.$route.params.slug } }] }).then(() => { diff --git a/client/src/store/index.js b/client/src/store/index.js index 9157f5dc..be7ae52c 100644 --- a/client/src/store/index.js +++ b/client/src/store/index.js @@ -11,7 +11,6 @@ export default new Vuex.Store({ showModal: '', contentBlockPosition: {}, scrollPosition: 0, - moduleSlug: 'geld', filterForSchoolClass: '', currentContentBlock: '', parentRoom: null