diff --git a/src/client/components/Map.tsx b/src/client/components/Map.tsx index 3eb782a8..abfe5581 100644 --- a/src/client/components/Map.tsx +++ b/src/client/components/Map.tsx @@ -23,7 +23,9 @@ function Map({ entries }: { entries: Models.IEntry[] }) { if (!entries?.length) { return No Data to be displayed } + const lastEntry = entries.at(-1); + const cleanEntries = entries.filter((entry) => !entry.ignore); return ( @@ -32,11 +34,14 @@ function Map({ entries }: { entries: Models.IEntry[] }) { attribution='© OpenStreetMap contributors' url="https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png" /> - - - {JSON.stringify(lastEntry, null, 2)} - - + {cleanEntries.map((entry) => + + +
{JSON.stringify(entry, null, 2)}
+
+
+ )} +
) } diff --git a/src/client/components/Status.tsx b/src/client/components/Status.tsx index 48a04bcb..5c1991ea 100644 --- a/src/client/components/Status.tsx +++ b/src/client/components/Status.tsx @@ -44,7 +44,7 @@ function Map({ entries }: { entries: Models.IEntry[] }) { return No Data to be displayed } const statusData = getStatusData(entries); - const lastEntry = entries.at(-1); + //const lastEntry = entries.at(-1); return (