From 9b97a13cc9275b97dc31d9510807d5092983ef4f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A1ssio=20Zen?= Date: Wed, 19 Oct 2016 19:10:14 -0200 Subject: [PATCH] bugfix: Don't try to show if entry is partial --- src/components/ControlPanel/ControlPane.js | 3 +-- src/components/EntryEditor/EntryEditor.css | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/ControlPanel/ControlPane.js b/src/components/ControlPanel/ControlPane.js index 8ca01ae9..10692cdf 100644 --- a/src/components/ControlPanel/ControlPane.js +++ b/src/components/ControlPanel/ControlPane.js @@ -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 (
diff --git a/src/components/EntryEditor/EntryEditor.css b/src/components/EntryEditor/EntryEditor.css index 4db0945e..f4f76f63 100644 --- a/src/components/EntryEditor/EntryEditor.css +++ b/src/components/EntryEditor/EntryEditor.css @@ -9,6 +9,7 @@ bottom: 0; display: flex; flex-direction: column; + width: 100%; } .container {