Commit 7388a4fb by Ryan McKinley Committed by Torkel Ödegaard

ValuMapping: start with some values (#18092)

parent 1e058424
...@@ -18,7 +18,7 @@ export class ValueMappingsEditor extends PureComponent<Props, State> { ...@@ -18,7 +18,7 @@ export class ValueMappingsEditor extends PureComponent<Props, State> {
constructor(props: Props) { constructor(props: Props) {
super(props); super(props);
const mappings = props.valueMappings; const mappings = props.valueMappings || [];
this.state = { this.state = {
valueMappings: mappings, valueMappings: mappings,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment