From 388c53e47bab31c1bc21b52ead56c7e348037d2b Mon Sep 17 00:00:00 2001
From: Bartha Maxime <231026@umons.ac.be>
Date: Tue, 16 Apr 2024 11:54:53 +0200
Subject: [PATCH] fixed front

---
 .../Apps/ScientificPublications/ResearcherProfile.vue | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/frontend/src/Apps/ScientificPublications/ResearcherProfile.vue b/frontend/src/Apps/ScientificPublications/ResearcherProfile.vue
index 26f9e3e..eca4019 100644
--- a/frontend/src/Apps/ScientificPublications/ResearcherProfile.vue
+++ b/frontend/src/Apps/ScientificPublications/ResearcherProfile.vue
@@ -16,9 +16,13 @@ const statsBy = ref("");
 const isFilterOpened = ref(false);
 const isResearchOpened = ref(false);
 const articleToDisplay = ref(Object)
-const filters = ref([""])
-const researchList = ref(await fetchResearches(1))
+const filters = ref([]);
+const researchList = ref(await fetchResearches(1));
 let chart;
+//todo changer dynamiquement le 1 ici en fct de sur quel profil on est
+const  researcher = ref(await fetchResearcher(1));
+
+
 
 
 const props = defineProps({
@@ -51,8 +55,6 @@ const downloadBibTex = (research) => {
 const downloadArticle = (research) => {
  //todo
 }
-//todo changer dynamiquement le 1 ici en fct de sur quel profil on est
-const  researcher = ref(await fetchResearcher(1))
 
 function downloadCoAuthors(){
   const data = JSON.stringify(researcher.value);
@@ -154,7 +156,6 @@ function update(){
         Stat type :
         <select @change="update()" id="stats-select" v-model="statsOf">
           <option value="views">Views</option>
-          <option value="co-authors">Co-authors</option>
           <option value="researches">Researches</option>
           <option value="language">Languages</option>
         </select>