muba-posting 9.0.18 → 9.0.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/Publish5.js CHANGED
@@ -423,7 +423,7 @@ export default class Publish5 extends React.Component {
423
423
 
424
424
  {feature.name == 'garage' && this.state.showParkingPlaces &&
425
425
  <InputNumber
426
- value={this.props.postingAd.parkingPlaces}
426
+ value={this.props.postingAd.parkingPlaces || 1}
427
427
  minValue={1}
428
428
  maxValue={99}
429
429
  required={true}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "muba-posting",
3
- "version": "9.0.18",
3
+ "version": "9.0.19",
4
4
  "description": "Posting",
5
5
  "main": "Posting.js",
6
6
  "scripts": {
@@ -59,10 +59,12 @@ export default class InputNumber extends React.Component {
59
59
  <View style={[commonStyles.col, commonStyles.col6, commonStyles.inputNumberBox]} ref={this.inputNumberView}>
60
60
  <View style={[commonStyles.col, commonStyles.col12, this.state.minValueError ? commonStyles.fieldError : null]}>
61
61
  <View style={commonStyles.inputNumberLabelBox}>
62
- <View style={commonStyles.row}>
63
- <Text style={commonStyles.inputNumberLabel}>{this.props.label}</Text>
64
- {this.props.required ? <Text style={commonStyles.red}> *</Text> : <Text />}
65
- </View>
62
+ {this.props.label &&
63
+ <View style={commonStyles.row}>
64
+ <Text style={commonStyles.inputNumberLabel}>{this.props.label}</Text>
65
+ {this.props.required ? <Text style={commonStyles.red}> *</Text> : <Text />}
66
+ </View>
67
+ }
66
68
  {this.state.minValueError ? <Text style={[commonStyles.subNote, commonStyles.red]}> {strings('setup.requiredField')}</Text> : null}
67
69
  </View>
68
70
  <View style={commonStyles.row}>