diff options
Diffstat (limited to 'frontend/app/common/form.component.js')
| -rw-r--r-- | frontend/app/common/form.component.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/frontend/app/common/form.component.js b/frontend/app/common/form.component.js index de1020a..ea4c5cb 100644 --- a/frontend/app/common/form.component.js +++ b/frontend/app/common/form.component.js @@ -68,7 +68,7 @@ export class NumberInput extends Component { onKeyDown={this.handleKeyDown} onChange={props.onChange} name={props.name} - value={props.data[props.name]} + value={props.name in props.data ? props.data[props.name] : (props.defaultValue || props.min)} min={props.min} max={props.max} step={props.step || 1} |
