From 2829f526a1264e11104a9ba536a5a9562a71e63c Mon Sep 17 00:00:00 2001 From: Ismail Ali Date: Tue, 15 Apr 2025 17:43:27 +0200 Subject: [PATCH] fix: API-Endpoint in fetchLoopChartData auf slotDataAPIHandler umgestellt - In Development wurde noch /api/cpl/slotData verwendet - Korrekt ist jetzt /api/cpl/slotDataAPIHandler - Fehler beim Laden der Chart-Daten behoben (Unexpected token '<') - Dev und Prod Zugriff wieder sauber getrennt --- .../Charts/LoopMeasurementChart/LoopChartActionBar.tsx | 4 ++-- config/webVersion.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/components/main/kabelueberwachung/kue705FO/Charts/LoopMeasurementChart/LoopChartActionBar.tsx b/components/main/kabelueberwachung/kue705FO/Charts/LoopMeasurementChart/LoopChartActionBar.tsx index e3cb8fa..26f5e56 100644 --- a/components/main/kabelueberwachung/kue705FO/Charts/LoopMeasurementChart/LoopChartActionBar.tsx +++ b/components/main/kabelueberwachung/kue705FO/Charts/LoopMeasurementChart/LoopChartActionBar.tsx @@ -36,7 +36,7 @@ export const useLoopChartLoader = () => { type === 3 ? "isolationswiderstand" : "schleifenwiderstand"; if (process.env.NODE_ENV === "development") { - return `/api/cpl/slotData?slot=${slotNumber}&messart=${typeFolder}&dia=${mode}&vonDatum=${vonDatum}&bisDatum=${bisDatum}`; + return `/api/cpl/slotDataAPIHandler?slot=${slotNumber}&messart=${typeFolder}&dia=${mode}&vonDatum=${vonDatum}&bisDatum=${bisDatum}`; } return `${window.location.origin}/CPL?seite.ACP&${mode}=${formatDate( @@ -112,7 +112,7 @@ const LoopChartActionBar: React.FC = () => { const baseUrl = process.env.NODE_ENV === "development" ? // ? `/CPLmockData/kuesChartData/slot${slotNumber}/${typeFolder}/${mode}.json` - `/api/cpl/slotData?slot=${slotNumber}&messart=${typeFolder}&dia=${mode}&vonDatum=${vonDatum}&bisDatum=${bisDatum}` + `/api/cpl/slotDataAPIHandler?slot=${slotNumber}&messart=${typeFolder}&dia=${mode}&vonDatum=${vonDatum}&bisDatum=${bisDatum}` : `${window.location.origin}/CPL?seite.ACP&${mode}=${formatDate( vonDatum )};${formatDate(bisDatum)};${slotNumber};${type};`; diff --git a/config/webVersion.ts b/config/webVersion.ts index d8ae4ad..29ead5b 100644 --- a/config/webVersion.ts +++ b/config/webVersion.ts @@ -6,5 +6,5 @@ 2: Patch oder Hotfix (Bugfixes oder kleine Änderungen). */ -const webVersion = "1.6.227"; +const webVersion = "1.6.228"; export default webVersion;