From 48640dfa8b7b7ab8306d77d20a24958f41b8c7fb Mon Sep 17 00:00:00 2001 From: Bartha Maxime <231026@umons.ac.be> Date: Mon, 22 Apr 2024 22:36:12 +0200 Subject: [PATCH] fixed views update --- .../src/Apps/ScientificPublications/ListResearches.vue | 10 +++++++++- .../Apps/ScientificPublications/ResearcherProfile.vue | 6 +++++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/frontend/src/Apps/ScientificPublications/ListResearches.vue b/frontend/src/Apps/ScientificPublications/ListResearches.vue index 67bae6d..dc0a69f 100644 --- a/frontend/src/Apps/ScientificPublications/ListResearches.vue +++ b/frontend/src/Apps/ScientificPublications/ListResearches.vue @@ -35,6 +35,14 @@ watch( } ); +async function modified(){ + if (typeof props.researchList === 'undefined'){ + researchList.value = await fetchAllResearches() + } + else { + emit('modified') + } +} const openFilter = () => { isFilterOpened.value = true; @@ -112,7 +120,7 @@ const emit = defineEmits(["modified"]);