fix(Bug retour after invite): bug that crashed app when retour after invite

This commit is contained in:
Laurian-Dufrechou
2023-05-20 14:17:52 +02:00
parent 7bd6c59af5
commit 97dd0d1888
+1 -1
View File
@@ -54,7 +54,7 @@ export default function MapComponent(props: any) {
<Marker icon={userIcon} position={location}></Marker>
<MarkerClusterGroup chunkedLoading showCoverageOnHover={false}>
{listBars.map((bar: any, index: number) => (
{listBars?.map?.((bar: any, index: number) => (
<MarkerBar key={index} bar={bar} />
))}
</MarkerClusterGroup>