pgaes Verzeichnis Struktur verbessert
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user