diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2020-01-19 01:28:58 +0100 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2020-01-19 01:28:58 +0100 |
| commit | 55f508101615441bba88e9d5ff305ad0e5029091 (patch) | |
| tree | cd24f281602a89e88c7af992cf8562025089af01 /app | |
| parent | 297e991ee49c5f0f1cc91fee72800f6dc040d097 (diff) | |
deploy bundle
Diffstat (limited to 'app')
| -rw-r--r-- | app/client/common/slider.component.js | 5 | ||||
| -rw-r--r-- | app/client/modules/biggan/views/biggan.encodingList.js | 2 |
2 files changed, 5 insertions, 2 deletions
diff --git a/app/client/common/slider.component.js b/app/client/common/slider.component.js index 9dba730..bb5c9f1 100644 --- a/app/client/common/slider.component.js +++ b/app/client/common/slider.component.js @@ -16,8 +16,11 @@ class Slider extends Component { this.handleRange = this.handleRange.bind(this) } componentWillReceiveProps(nextProps) { - const next_value = nextProps.value || nextProps.opt[nextProps.name] + let next_value = nextProps.value || nextProps.opt[nextProps.name] if (next_value !== this.state.value) { + if (this.props.type === 'int') { + next_value = parseInt(next_value) + } this.setState({ value: next_value }); } } diff --git a/app/client/modules/biggan/views/biggan.encodingList.js b/app/client/modules/biggan/views/biggan.encodingList.js index e03c020..3d8f07d 100644 --- a/app/client/modules/biggan/views/biggan.encodingList.js +++ b/app/client/modules/biggan/views/biggan.encodingList.js @@ -81,7 +81,7 @@ class BigGANEncodingList extends Component { <Slider live name='encoding_orbit_radius' title={"Radius"} - min={0} max={1.0} step={0.001} type='float' + min={0} max={0.25} step={0.001} type='float' /> <Button title={"Shuffle"} |
