Skip to content

Commit

Permalink
Clean up code
Browse files Browse the repository at this point in the history
  • Loading branch information
carolynzhang18 committed Mar 8, 2024
1 parent 9b7ed82 commit 8426e99
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions frontend/src/components/tables/DocumentDirectoryTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,13 +83,12 @@ const DocumentDirectoryTable = () => {
</Thead>
<Tbody>
{documents.map((document) => {
const isChecked = selectedDocumentIds.has(document.id);
return (
<Tr key={document.id}>
<Td>
<Checkbox
id={document.id}
isChecked={isChecked}
isChecked={selectedDocumentIds.has(document.id)}
onChange={changeRowCheckbox}
/>
</Td>
Expand Down

0 comments on commit 8426e99

Please sign in to comment.