bon c'est pas nickel mais sa fera le taf
Some checks failed
Build Docker Image Front / run (pull_request) Failing after 46s
Build Docker Image Back / run (pull_request) Successful in 22s
JsDocs / coverage (pull_request) Successful in 24s
Test and coverage / coverage (pull_request) Failing after 1m27s

This commit is contained in:
Clement 2024-06-07 17:11:07 +02:00
parent 26f4b105cc
commit 83d3a76236

View File

@ -158,8 +158,9 @@ console.log(fav);
}
function eventRemoveFav(e: Element){
e.addEventListener('click', () => {
saveToFav({id:e.id, type:"Feature"},false)
e.addEventListener('click', async () => {
await saveToFav({id:e.id, type:"Feature"},false)
document.location.reload()
})
}
@ -205,6 +206,7 @@ console.log(fav);
e.addEventListener("click", () => {
console.log(element)
saveToFav(element, e.checked)
document.location.reload()
})
})
})