Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

Commit

Permalink
Update deprecated prop (#55)
Browse files Browse the repository at this point in the history
Also add `required` attribute to select picking right maxmind database.
  • Loading branch information
edmundoa authored and bernd committed Oct 2, 2017
1 parent 17c85f6 commit 770453e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/web/components/GeoIpResolverConfig.jsx
Expand Up @@ -126,10 +126,11 @@ const GeoIpResolverConfig = React.createClass({
<Input label="Select the MaxMind database type"
help="Select the MaxMind database type you want to use to extract geo-location information.">
<Select placeholder="Select MaxMind database type"
required
options={this._availableDatabaseTypes()}
matchProp="value"
value={this.state.config.db_type}
onValueChange={this._onDbTypeSelect}/>
onChange={this._onDbTypeSelect} />
</Input>
<Input type="text"
label="Path to the MaxMind database"
Expand Down
2 changes: 1 addition & 1 deletion src/web/components/adapter/MaxmindAdapterFieldSet.jsx
Expand Up @@ -61,7 +61,7 @@ const MaxmindAdapterFieldSet = React.createClass({
clearable={false}
options={databaseTypes}
matchProp="value"
onValueChange={this._onDbTypeSelect}
onChange={this._onDbTypeSelect}
value={config.database_type} />
</Input>
<TimeUnitInput label="Refresh file"
Expand Down

0 comments on commit 770453e

Please sign in to comment.