mirror of
https://github.com/christianvidalwolf-prog/Craze-Data-check.git
synced 2026-08-03 12:35:25 +02:00
feat: add Edit button to history items to modify changes
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user