fix: Dynamische Initialisierung von "vonDatum" und "bisDatum" im Redux-Store

- vonDatum auf „heute minus 30 Tage“ gesetzt (statt festem Datum).
- bisDatum auf heutiges Datum gesetzt.
- Behebt Initialisierungsproblem im DateRangePicker.
This commit is contained in:
Ismail Ali
2025-03-23 11:14:38 +01:00
parent 0d549c4580
commit 8e482813f8
4 changed files with 81 additions and 38 deletions

View File

@@ -13,9 +13,14 @@ const getApiUrl = (
console.error("⚠️ Slot-Nummer nicht gesetzt!");
return "";
}
// type: 3 → Isolationswiderstand
// type: 4 → Schleifenwiderstand
const typeFolder =
type === 3 ? "isolationswiderstand" : "schleifenwiderstand";
type === 3
? "isolationswiderstand"
: type === 4
? "schleifenwiderstand"
: "unbekannterTyp";
return process.env.NODE_ENV === "development"
? `/CPLmockData/kuesChartData/slot${slotNumber}/${typeFolder}/${mode}.json`