@onehat/ui 0.3.186 → 0.3.188

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.186",
3
+ "version": "0.3.188",
4
4
  "description": "Base UI for OneHat apps",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
@@ -290,6 +290,9 @@ function Form(props) {
290
290
  return _.map(items, (item, ix) => buildFromItem(item, ix, columnDefaults));
291
291
  },
292
292
  buildFromItem = (item, ix, defaults) => {
293
+ if (!item) {
294
+ return null;
295
+ }
293
296
  if (React.isValidElement(item)) {
294
297
  return item;
295
298
  }
@@ -60,6 +60,9 @@ function Viewer(props) {
60
60
  return _.map(items, (item, ix) => buildFromItem(item, ix, columnDefaults));
61
61
  },
62
62
  buildFromItem = (item, ix, defaults) => {
63
+ if (!item) {
64
+ return null;
65
+ }
63
66
  let {
64
67
  type,
65
68
  title,
@@ -32,7 +32,7 @@ function UploadsDownloadsWindow(props) {
32
32
  showInfo,
33
33
  } = props,
34
34
  [importFile, setImportFile] = useState(null),
35
- [width, height] = useAdjustedWindowSize(400, 400),
35
+ [width, height] = useAdjustedWindowSize(400, 450),
36
36
  onDownload = (isTemplate = false) => {
37
37
  const
38
38
  baseURL = Repository.api.baseURL,