Skip to content

Commit

Permalink
Fix remembering the signature rows that were selected (#86)
Browse files Browse the repository at this point in the history
  • Loading branch information
mhuth authored Sep 12, 2023
1 parent 33aeb60 commit 8db1362
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Components/SigTable/SigTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -301,13 +301,14 @@ const SigTable = ({ refetchSigPageData }) => {
}, []);

useEffect(() => {
const selectedSigIds = selectedSigs.map(sig => sig.id);
const rowBuilder = data => data?.rulesList?.flatMap((data, key) => {
const sig = data;
return [{
rowId: key,
isOpen: false,
sigData: sig,
selected: selectedSigs.includes(sig.id),
selected: selectedSigIds.includes(sig.id),
cells: [
{ title:
<React.Fragment>
Expand Down

0 comments on commit 8db1362

Please sign in to comment.