From 28197fbaeb025fe485396dc46f0ee597625c0767 Mon Sep 17 00:00:00 2001 From: Florian Graule Date: Mon, 19 Aug 2024 20:31:06 +0200 Subject: [PATCH] Updating the semimajor axis in the graph --- frontend/src/app/satellites/[satelliteSlug]/orbitDataGraph.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/app/satellites/[satelliteSlug]/orbitDataGraph.tsx b/frontend/src/app/satellites/[satelliteSlug]/orbitDataGraph.tsx index 3d368be..aed4a23 100644 --- a/frontend/src/app/satellites/[satelliteSlug]/orbitDataGraph.tsx +++ b/frontend/src/app/satellites/[satelliteSlug]/orbitDataGraph.tsx @@ -130,7 +130,6 @@ const OrbitDataGraph: React.FC = ({ lastChartDate.setMonth( firstChartDate.getMonth() + scrollBarTimeFrame.current, ); - // Filtering the data to display only the data in the selected period const filteredData = orbitalData .filter((data: any) => { @@ -140,6 +139,7 @@ const OrbitDataGraph: React.FC = ({ .map((data: any) => { return { ...data, + semiMajorAxis: data.semiMajorAxis - 6371, epoch: new Date(data.epoch.slice(0, 23) + "Z"), }; });