mirror of
https://github.com/maputnik/editor.git
synced 2025-12-31 02:20:02 +00:00
Always have default value if value not set
This commit is contained in:
@@ -46,7 +46,7 @@ export default class PropertyGroup extends React.Component {
|
||||
onChange={this.onPropertyChange.bind(this)}
|
||||
key={fieldName}
|
||||
fieldName={fieldName}
|
||||
value={fieldValue}
|
||||
value={fieldValue === undefined ? fieldSpec.default : fieldValue}
|
||||
fieldSpec={fieldSpec}
|
||||
/>
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user