@onehat/ui 0.3.142 → 0.3.144

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onehat/ui",
3
- "version": "0.3.142",
3
+ "version": "0.3.144",
4
4
  "description": "Base UI for OneHat apps",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
@@ -765,7 +765,7 @@ function Form(props) {
765
765
  editor = <>
766
766
  {containerWidth >= CONTAINER_THRESHOLD ? <Row p={4} pl={0}>{formComponents}</Row> : null}
767
767
  {containerWidth < CONTAINER_THRESHOLD ? <Column p={4}>{formComponents}</Column> : null}
768
- <Column m={2} pt={4}>{formAncillaryComponents}</Column>
768
+ <Column m={2} pt={4} px={2}>{formAncillaryComponents}</Column>
769
769
  </>;
770
770
 
771
771
  additionalButtons = buildAdditionalButtons(additionalEditButtons);
@@ -112,7 +112,7 @@ export default function withSecondaryEditor(WrappedComponent, isTree = false) {
112
112
  addValues[secondarySelectorId] = secondarySelectorSelected.id;
113
113
  }
114
114
 
115
- if (!values && getNewEntityDisplayValue()) {
115
+ if (getNewEntityDisplayValue()) {
116
116
  const displayPropertyName = SecondaryRepository.getSchema().model.displayProperty;
117
117
  addValues[displayPropertyName] = getNewEntityDisplayValue();
118
118
  }
@@ -109,7 +109,7 @@ export default function withEditor(WrappedComponent, isTree = false) {
109
109
  addValues[selectorId] = selectorSelected.id;
110
110
  }
111
111
 
112
- if (!values && getNewEntityDisplayValue()) {
112
+ if (getNewEntityDisplayValue()) {
113
113
  const displayPropertyName = Repository.getSchema().model.displayProperty;
114
114
  addValues[displayPropertyName] = getNewEntityDisplayValue();
115
115
  }