bugfix: Don't try to show if entry is partial

This commit is contained in:
Cássio Zen 2016-10-19 19:10:14 -02:00
parent 23ab740d53
commit 9b97a13cc9
2 changed files with 2 additions and 2 deletions

View File

@ -10,8 +10,7 @@ export default class ControlPane extends Component {
const widget = resolveWidget(field.get('widget'));
const fieldName = field.get('name');
const value = entry.getIn(['data', fieldName]);
if (entry.size === 0) return null;
if (entry.size === 0 || entry.get('partial') === true) return null;
return (
<div className={styles.control}>
<label className={styles.label} htmlFor={fieldName}>{field.get('label')}</label>

View File

@ -9,6 +9,7 @@
bottom: 0;
display: flex;
flex-direction: column;
width: 100%;
}
.container {