feat: add Edit button to history items to modify changes

This commit is contained in:
Christian Vidal Wolf
2026-04-10 12:46:26 +02:00
parent be584600fc
commit 95eb6ab91b
2 changed files with 17 additions and 2 deletions
+1
View File
@@ -558,6 +558,7 @@ export default function App() {
headers={appState.headers}
data={appState.data}
sessionToken={session?.access_token}
onEdit={(index) => setEditingRowIndex(index)}
onRevert={async (articleNo, revertedData, historyId) => {
// Find the row in appState.data and update it
const rowIndex = appState.data.findIndex(r => String(r[COLUMNS.ARTICLE_NO]) === articleNo);