From f74a8ac96b76d06ed9c884ee6be78910cf529c1a Mon Sep 17 00:00:00 2001 From: Jon Date: Thu, 14 Nov 2024 15:54:38 +0930 Subject: [PATCH] fix: correct logic for history route to work ref: #26 #28 nofusscomputing/centurion_erp#248 --- src/App.js | 3 +-- src/components/Table.jsx | 2 +- src/hooks/urlBuilder.js | 15 +++++++++++---- src/layout/history.jsx | 2 +- 4 files changed, 14 insertions(+), 8 deletions(-) diff --git a/src/App.js b/src/App.js index d9f7b02..b5fbdad 100644 --- a/src/App.js +++ b/src/App.js @@ -51,13 +51,12 @@ function App() { > }/> - } errorElement={ } - loader = {detailsLoader} /> { let a = e - document.getElementById('expandable-' + e.currentTarget.parentElement.id).classList.toggle("hide-expandable-row") + document.getElementById('expandable-' + data.id).classList.toggle("hide-expandable-row") }} >