master #187
@ -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]
|
||||||
|
Loading…
Reference in New Issue
Block a user