Skip to content

Commit

Permalink
fixing checkbox error
Browse files Browse the repository at this point in the history
  • Loading branch information
snevesbarros committed Dec 9, 2023
1 parent 109dae4 commit a2432cd
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions src/components/pages/dashboard/BuildsTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import {
Table,
Popover,
Whisper,
CheckboxGroup,
} from 'rsuite';
import { getDuration } from '../../../utility/TimeUtilities';
import ExecutionsResultsBar from '../../common/results-bar';
Expand Down Expand Up @@ -72,15 +71,13 @@ const CheckCell = function (props) {
return (
// eslint-disable-next-line react/jsx-props-no-spreading
<Cell {...rest}>
<CheckboxGroup>
<Checkbox
key={`${build._id}-${isRowSelected(build)}`}
value={build._id}
onClick={() => toggleSelectedBuild(build)}
checked={isRowSelected(build)}
inline={false}
/>
</CheckboxGroup>
<Checkbox
key={`${build._id}-${isRowSelected(build)}`}
value={build._id}
onClick={() => toggleSelectedBuild(build)}
checked={isRowSelected(build)}
inline={false}
/>
</Cell>
);
};
Expand Down

0 comments on commit a2432cd

Please sign in to comment.