fixed push of researcher
This commit is contained in:
parent
364f39c4bc
commit
34e537ff02
@ -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