Warn when reverting to original state (no actual changes)

This commit is contained in:
Christian Vidal Wolf
2026-04-10 09:42:04 +02:00
parent 7bf37eb017
commit 0cf4f59937
2 changed files with 12 additions and 2 deletions
+1
View File
@@ -473,6 +473,7 @@ export default function App() {
{activeModule === 'history' && (
<HistoryView
headers={appState.headers}
data={appState.data}
onRevert={(articleNo, revertedData) => {
// Find the row in appState.data and update it
const rowIndex = appState.data.findIndex(r => String(r[COLUMNS.ARTICLE_NO]) === articleNo);