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:
@@ -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`
|
||||
|
||||
Reference in New Issue
Block a user