@onehat/ui 0.3.186 → 0.3.187

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.187",
4
4
  "description": "Base UI for OneHat apps",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
@@ -287,7 +287,15 @@ function Form(props) {
287
287
  return <Row>{elements}</Row>;
288
288
  },
289
289
  buildFromItems = () => {
290
- return _.map(items, (item, ix) => buildFromItem(item, ix, columnDefaults));
290
+ const builtItems = [];
291
+ _.each(items, (item, ix) => {
292
+ if (!item) {
293
+ return;
294
+ }
295
+ const builtItem = buildFromItem(item, ix, columnDefaults);
296
+ builtItems.push(builtItem);
297
+ });
298
+ return builtItems;
291
299
  },
292
300
  buildFromItem = (item, ix, defaults) => {
293
301
  if (React.isValidElement(item)) {
@@ -57,7 +57,15 @@ function Viewer(props) {
57
57
  styles = UiGlobals.styles,
58
58
  flex = props.flex || 1,
59
59
  buildFromItems = () => {
60
- return _.map(items, (item, ix) => buildFromItem(item, ix, columnDefaults));
60
+ const builtItems = [];
61
+ _.each(items, (item, ix) => {
62
+ if (!item) {
63
+ return;
64
+ }
65
+ const builtItem = buildFromItem(item, ix, columnDefaults);
66
+ builtItems.push(builtItem);
67
+ });
68
+ return builtItems;
61
69
  },
62
70
  buildFromItem = (item, ix, defaults) => {
63
71
  let {
@@ -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,