Letzten TDR-Messungen anzeigen in Dropdown-Menü

This commit is contained in:
ISA
2025-03-25 07:57:17 +01:00
parent 4d97252556
commit 6730ba92be
4 changed files with 9 additions and 3 deletions

View File

@@ -36,7 +36,7 @@ const TDRChartActionBar: React.FC = () => {
const handleReset = () => {
setSelectedId(null);
dispatch(setSelectedTDRId(null));
dispatch(setSelectedTDRId(-1)); // z.B. -1 als „Reset“-Kennzeichnung
};
return (

View File

@@ -6,5 +6,5 @@
2: Patch oder Hotfix (Bugfixes oder kleine Änderungen).
*/
const webVersion = "1.6.154";
const webVersion = "1.6.155";
export default webVersion;

View File

@@ -1,7 +1,7 @@
// /redux/slices/tdmChartSlice.ts
import { createSlice, PayloadAction } from "@reduxjs/toolkit";
import { fetchAllTDMData } from "../thunks/fetchAllTDMThunk";
import type { TDMEntry } from "../../types"; // optional, wenn ausgelagert
import type { TDMEntry } from "../types/tdmEntryTypes";
interface TDMChartState {
data: TDMEntry[][]; // 32 Arrays (je Slot)

View File

@@ -0,0 +1,6 @@
// redux/types/tdmEntryTypes.ts
export interface TDMEntry {
id: number;
t: string;
// ggf. weitere Felder wie m, p usw.
}