pgaes Verzeichnis Struktur verbessert

This commit is contained in:
Ismail Ali
2025-02-14 18:43:53 +01:00
parent 0910a36371
commit b1b4837968
11 changed files with 56 additions and 163 deletions

View File

@@ -4,6 +4,8 @@ import { useDispatch } from "react-redux";
import { setChartData } from "../../../../../../redux/slices/chartDataSlice";
const LoopChartActionBar: React.FC = () => {
const isolationswiderstand = 3;
const schleifenwiderstand = 4;
const dispatch = useDispatch();
const [showChart, setShowChart] = useState(false);
@@ -12,7 +14,7 @@ const LoopChartActionBar: React.FC = () => {
const apiUrl =
process.env.NODE_ENV === "development"
? "/mockData.json"
: "/CPL?seite.ACP&DIA1=2025;01;01;2025;07;31;2;4";
: `/CPL?seite.ACP&DIA1=2025;01;01;2025;07;31;${slotIndex};${schleifenwiderstand}`;
const response = await fetch(apiUrl);
const data = await response.json();