bugfix: Don't try to show if entry is partial
This commit is contained in:
parent
23ab740d53
commit
9b97a13cc9
@ -10,8 +10,7 @@ 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 (entry.size === 0) return null;
|
if (entry.size === 0 || entry.get('partial') === true) 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>
|
||||||
|
@ -9,6 +9,7 @@
|
|||||||
bottom: 0;
|
bottom: 0;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.container {
|
.container {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user