feat: KVZ API JSON Data
This commit is contained in:
@@ -26,6 +26,7 @@ import { getAllTDRReferenceChartThunk } from "@/redux/thunks/getAllTDRReferenceC
|
||||
import { getTDRChartDataByIdThunk } from "@/redux/thunks/getTDRChartDataByIdThunk";
|
||||
import { getLoopChartDataThunk } from "@/redux/thunks/getLoopChartDataThunk";
|
||||
import { getAuthThunks } from "@/redux/thunks/getAuthThunks";
|
||||
import { loadKvzData } from "@/redux/thunks/kvzThunks";
|
||||
import Modal from "react-modal";
|
||||
import { ToastContainer } from "react-toastify";
|
||||
import "react-toastify/dist/ReactToastify.css";
|
||||
@@ -78,6 +79,10 @@ function AppContent({
|
||||
|
||||
const loadAndDispatch = () => {
|
||||
dispatch(getAuthThunks());
|
||||
|
||||
// KVZ-Daten beim Start laden
|
||||
dispatch(loadKvzData());
|
||||
|
||||
if (pathname.includes("kabelueberwachung")) {
|
||||
dispatch(getKueDataThunk());
|
||||
} else if (pathname.includes("analogInputs")) {
|
||||
|
||||
Reference in New Issue
Block a user