Skip to content
This repository has been archived by the owner on Oct 31, 2021. It is now read-only.

Commit

Permalink
Merge pull request #21 from daniel-goldstein/fix-crawl-checkbox
Browse files Browse the repository at this point in the history
set boolean value of checkbox directly
  • Loading branch information
daniel-goldstein authored Oct 27, 2019
2 parents f7ced94 + f852381 commit cdea0f7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ClueUploadForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ export default class ClueUploadForm extends React.Component {
<Form.Label>Crawl?</Form.Label>
<Form.Check
type="checkbox"
onChange={() => this.setState({inCrawl: !this.state.inCrawl})}
checked={this.state.inCrawl}
onChange={(e) => this.setState({inCrawl: e.target.checked})}
/>
</Form.Group>

Expand Down

0 comments on commit cdea0f7

Please sign in to comment.