filtry + ciastko
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Jakub Kaniecki
2024-07-09 22:37:54 +02:00
parent 256bd8a0ee
commit 97b7e8726d
8 changed files with 65 additions and 73 deletions

View File

@@ -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>