1
0
forked from PGL/Clyde

fixed push of researcher

This commit is contained in:
Bartha Maxime 2024-04-22 12:19:21 +02:00
parent 364f39c4bc
commit 34e537ff02

View File

@ -32,6 +32,7 @@ async function createResearcher(){
toCreate.user = user.value toCreate.user = user.value
await postResearcher(toCreate) await postResearcher(toCreate)
creating.value = false creating.value = false
allResearcher.value = await fetchAllResearchers()
for (let i = 0; i < allResearcher.value.length; i++) { for (let i = 0; i < allResearcher.value.length; i++) {
if (user.value.regNo === allResearcher.value[i].user.regNo){ if (user.value.regNo === allResearcher.value[i].user.regNo){
researcher.value = allResearcher.value[i] researcher.value = allResearcher.value[i]