@onehat/ui 0.3.250 → 0.3.251

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.250",
3
+ "version": "0.3.251",
4
4
  "description": "Base UI for OneHat apps",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
@@ -473,7 +473,7 @@ function Form(props) {
473
473
  if (type === 'Row') {
474
474
  propsToPass.w = '100%';
475
475
  }
476
- const itemDefaults = item.defaults;
476
+ const itemDefaults = item.defaults || {};
477
477
  children = _.map(items, (item, ix) => {
478
478
  return buildFromItem(item, ix, {...defaults, ...itemDefaults});
479
479
  });
@@ -124,7 +124,7 @@ function Viewer(props) {
124
124
  } else if (type === 'FieldSet' && item.showToggleAllCheckbox) {
125
125
  propsToPass.showToggleAllCheckbox = false; // don't allow it in view mode
126
126
  }
127
- const defaults = item.defaults;
127
+ const itemDefaults = item.defaults || {};
128
128
  children = _.map(items, (item, ix) => {
129
129
  return buildFromItem(item, ix, {...defaults, ...itemDefaults});
130
130
  });