Skip to content
This repository has been archived by the owner on Sep 25, 2018. It is now read-only.

Commit

Permalink
add missing value to select tag
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjamin King committed Mar 16, 2018
1 parent f30ed80 commit fee75cd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/scripts/components/imagepanel/select.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ export default class ImageResSelection extends React.Component {
var fileType = this.state.fileType;
var resolution = this.state.resolution;
var worldfile = this.state.worldfile;

if (type === 'resolution') {
resolution = value;
} else if (type === 'worldfile') {
Expand All @@ -53,7 +54,7 @@ export default class ImageResSelection extends React.Component {
<SelectionList
id='wv-image-format'
optionName='filetype'
value={this.state.filetype}
value={this.state.fileType}
optionArray={this.state.fileTypes}
onChange={this.handleChange.bind(this)}
/>
Expand All @@ -68,6 +69,7 @@ export default class ImageResSelection extends React.Component {
<div className='wv-image-header'>
<select
id='wv-image-worldfile'
value={this.state.worldfile}
onChange={(e) => this.handleChange('worldfile', e.target.value)}>
<option value='false'>No</option>
<option value='true'>Yes</option>
Expand Down

0 comments on commit fee75cd

Please sign in to comment.