Skip to content

Commit

Permalink
Fix All toggle render
Browse files Browse the repository at this point in the history
The All toggle doesn't render correctly due to this issue --> mui/material-ui#18018. I've set the All toggle to render only when there are more than one reporters. This fixes the visual render for now but leaves the warning about the className mismatch between server and the client in the console.
  • Loading branch information
sarukuku committed Dec 23, 2019
1 parent 0e76624 commit 29ff815
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/checkBoxFilterHorizontal.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ const CheckBoxFilterHorizontal = ({elements, setElements, label}) => {
return (
<FormControl>
<FormGroup row>
<FormControlLabel
{elements.length > 1 && <FormControlLabel
key={'filter-title-id'}
labelPlacement="end"
control={<Checkbox checked={all} color="default" onChange={toggleAll}/>}
label={'All'}
/>
/>}
{elements.map(el => (
<FormControlLabel
key={`filter-${el[label]}`}
Expand Down

0 comments on commit 29ff815

Please sign in to comment.