From 67b52b609f93f50b524d0934ade81f4563d4efb6 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Timoth=C3=A9e=20Poussard?= <tpoussard@neogeo.fr>
Date: Thu, 20 Jan 2022 10:52:07 +0100
Subject: [PATCH] fix feature_detail

---
 src/views/feature/Feature_detail.vue | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/src/views/feature/Feature_detail.vue b/src/views/feature/Feature_detail.vue
index 4f7d1f00..c5c54648 100644
--- a/src/views/feature/Feature_detail.vue
+++ b/src/views/feature/Feature_detail.vue
@@ -434,9 +434,11 @@ export default {
       'user',
       'USER_LEVEL_PROJECTS'
     ]),
+    ...mapState('projects', [
+      'project'
+    ]),
     ...mapGetters([
       'permissions',
-      'project'
     ]),
     ...mapState('feature', [
       'linked_features',
@@ -504,7 +506,9 @@ export default {
       // Chargements des features et infos projet en cas d'arrivée directe sur la page ou de refresh
       axios.all([
         this.$store
-          .dispatch('GET_PROJECT_INFO', this.$route.params.slug),
+          .dispatch('projects/GET_PROJECT', this.$route.params.slug),
+        this.$store
+          .dispatch('projects/GET_PROJECT_INFO', this.$route.params.slug),
         this.$store.dispatch('feature/GET_PROJECT_FEATURE', {
           project_slug: this.$route.params.slug,
           feature_id: this.$route.params.slug_signal
-- 
GitLab