fix: Bei den Messkurven der Kabelüberwachungen ist noch ein Fehler: Du übergibst für die erste Kabelüberwachung den Wert 1 anstatt 0.

Im Lastenheft steht 0 bis 31 für Kabelüberwachungen (Wert q):
This commit is contained in:
ISA
2025-05-12 13:19:57 +02:00
parent 48c551d881
commit a80c3675ff
3 changed files with 12 additions and 6 deletions

View File

@@ -35,13 +35,18 @@ export const useLoopChartLoader = () => {
const typeFolder =
type === 3 ? "isolationswiderstand" : "schleifenwiderstand";
let url: string;
if (process.env.NODE_ENV === "development") {
return `/api/cpl/slotDataAPIHandler?slot=${slotNumber}&messart=${typeFolder}&dia=${mode}&vonDatum=${vonDatum}&bisDatum=${bisDatum}`;
url = `/api/cpl/slotDataAPIHandler?slot=${slotNumber}&messart=${typeFolder}&dia=${mode}&vonDatum=${vonDatum}&bisDatum=${bisDatum}`;
} else {
url = `${window.location.origin}/CPL?seite.ACP&${mode}=${formatDate(
vonDatum
)};${formatDate(bisDatum)};${slotNumber};${type};`;
}
return `${window.location.origin}/CPL?seite.ACP&${mode}=${formatDate(
vonDatum
)};${formatDate(bisDatum)};${slotNumber};${type};`;
console.log("API URL:", url); // Hier wird die URL in der Konsole ausgegeben
return url;
};
const loadLoopChartData = async () => {