Letzten TDR-Messungen anzeigen in Dropdown-Menü
This commit is contained in:
@@ -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 (
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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)
|
||||
|
||||
6
redux/types/tdmEntryTypes.ts
Normal file
6
redux/types/tdmEntryTypes.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
// redux/types/tdmEntryTypes.ts
|
||||
export interface TDMEntry {
|
||||
id: number;
|
||||
t: string;
|
||||
// ggf. weitere Felder wie m, p usw.
|
||||
}
|
||||
Reference in New Issue
Block a user