fix: API Endpoint in fetchOpcUaSettingsService für Development korrigiert
- falsches .js im API Pfad entfernt - Development lädt jetzt korrekt /api/cpl/opcuaAPIHandler - Production bleibt unverändert
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
// ✅ Thunk: /redux/thunks/fetchKueDataThunk.ts
|
||||
|
||||
import { createAsyncThunk } from "@reduxjs/toolkit";
|
||||
import { fetchKueData } from "../../services/fetchKueData";
|
||||
import { fetchKueDataService } from "../../services/fetchKueDataService";
|
||||
import { setKueData } from "../slices/kueDataSlice";
|
||||
|
||||
export const fetchKueDataThunk = createAsyncThunk(
|
||||
"kueData/fetch",
|
||||
async (_, { dispatch }) => {
|
||||
const data = await fetchKueData();
|
||||
const data = await fetchKueDataService();
|
||||
if (data) {
|
||||
dispatch(setKueData(data));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user