You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 5, 2024. It is now read-only.
if(!usersJson?.length){helptext.innerHTML="<span>Problème lors du chargement des membres</span>"setTimeout(()=>{helptext.style.display='none';},1000)return;}
ou alors :
3️⃣ Réparer l'API (en redémarrant la base 🙂 )
The text was updated successfully, but these errors were encountered:
Si l'API: https://espace-membre.incubateur.net/api/get-users-location retourne une erreur
500
(ce qui est le cas tout de suite), alorsusersJson
sera un objet vide{}
.Ce qui cause l'erreur :
TypeError: usersJson.filter is not a function
.secretariat/static/scripts/buildmap.js
Lines 751 to 756 in 3ca1790
Solutions
1️⃣ ajouter un
?
(optional chaining) (mais tout le code ensuite dépend deusersJson
, donc ce ne serait clairement pas suffisant)_ou alors :
2️⃣ afficher un message d'erreur
ou alors :
3️⃣ Réparer l'API (en redémarrant la base 🙂 )
The text was updated successfully, but these errors were encountered: