value can be undefined as long as there is an entry
This commit is contained in:
@ -10,7 +10,8 @@ export default class ControlPane extends Component {
|
|||||||
const widget = resolveWidget(field.get('widget'));
|
const widget = resolveWidget(field.get('widget'));
|
||||||
const fieldName = field.get('name');
|
const fieldName = field.get('name');
|
||||||
const value = entry.getIn(['data', fieldName]);
|
const value = entry.getIn(['data', fieldName]);
|
||||||
if (!value) return null;
|
if (entry.size === 0) return null;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className={styles.control}>
|
<div className={styles.control}>
|
||||||
<label className={styles.label} htmlFor={fieldName}>{field.get('label')}</label>
|
<label className={styles.label} htmlFor={fieldName}>{field.get('label')}</label>
|
||||||
|
Reference in New Issue
Block a user