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,6 +1,6 @@
|
||||
// ✅ 2. Thunk: /redux/thunks/fetchOpcUaSettingsThunk.ts
|
||||
import { createAsyncThunk } from "@reduxjs/toolkit";
|
||||
import { fetchOpcUaSettings } from "../../services/fetchOpcUaSettings";
|
||||
import { fetchOpcUaSettingsService } from "../../services/fetchOpcUaSettingsService";
|
||||
import {
|
||||
setOpcUaZustand,
|
||||
setOpcUaEncryption,
|
||||
@@ -12,7 +12,7 @@ import {
|
||||
export const fetchOpcUaSettingsThunk = createAsyncThunk(
|
||||
"opcuaSettings/fetch",
|
||||
async (_, { dispatch }) => {
|
||||
const data = await fetchOpcUaSettings();
|
||||
const data = await fetchOpcUaSettingsService();
|
||||
if (!data) return;
|
||||
|
||||
dispatch(setOpcUaZustand(data.zustand));
|
||||
|
||||
Reference in New Issue
Block a user