fix: digital Inputs Modal
This commit is contained in:
@@ -28,7 +28,7 @@ export const fetchDigitalInputsService = async () => {
|
||||
timeFilter: win.win_de_time_filter[i],
|
||||
weighting: win.win_de_weighting[i],
|
||||
counterActive: !!win.win_de_counter_active[i],
|
||||
offline: !!win.win_de_offline[i],
|
||||
eingangOffline: !!win.win_de_offline[i],
|
||||
}));
|
||||
}
|
||||
|
||||
@@ -49,7 +49,7 @@ export const fetchDigitalInputsService = async () => {
|
||||
timeFilter: data.win_de_time_filter[i],
|
||||
weighting: data.win_de_weighting[i],
|
||||
counterActive: !!data.win_de_counter_active[i],
|
||||
offline: !!data.win_de_offline[i],
|
||||
eingangOffline: !!data.win_de_offline[i],
|
||||
}));
|
||||
}
|
||||
|
||||
@@ -60,6 +60,7 @@ export const fetchDigitalInputsService = async () => {
|
||||
throw new Error("❌ Fehler beim Laden der digitalen Eingänge (json)");
|
||||
|
||||
const data = await res.json();
|
||||
//console.log("📡 JSMOCK-Daten geladen in service:", data);
|
||||
|
||||
return data.win_de_state.map((_: any, i: number) => ({
|
||||
id: i + 1,
|
||||
@@ -70,7 +71,7 @@ export const fetchDigitalInputsService = async () => {
|
||||
timeFilter: data.win_de_time_filter[i],
|
||||
weighting: data.win_de_weighting[i],
|
||||
counterActive: !!data.win_de_counter_active[i],
|
||||
offline: !!data.win_de_offline[i],
|
||||
eingangOffline: !!data.win_de_offline[i],
|
||||
}));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user