diff --git a/app/(tabs)/mapScreen.tsx b/app/(tabs)/mapScreen.tsx index d49992b..9b4371b 100644 --- a/app/(tabs)/mapScreen.tsx +++ b/app/(tabs)/mapScreen.tsx @@ -42,12 +42,15 @@ const region = { style={styles.map} region={region} > - {chantiers.map(chantier => ( - - ))} + {Array.isArray(chantiers) && + chantiers.map(chantier => ( + + ))} );