This commit is contained in:
@@ -11,11 +11,9 @@ const Selector = (props) => {
|
||||
<input type='checkbox' name={props.inputname} value={value_to_map_from.id}
|
||||
onChange={props.onChange}
|
||||
className='mr-2'
|
||||
checked={props.state.includes(value_to_map_from.id)}
|
||||
checked={props.state[props.inputname]?.includes(value_to_map_from.id)}
|
||||
/>
|
||||
|
||||
{value_to_map_from.name}
|
||||
|
||||
</label>
|
||||
))}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user