@jsonforms/core 3.4.0-alpha.2 → 3.4.0-alpha.3

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.
@@ -749,12 +749,18 @@ var isEnabled = function (uischema, data, path, ajv) {
749
749
  };
750
750
 
751
751
  var getFirstPrimitiveProp = function (schema) {
752
- if (schema.properties) {
752
+ if (schema &&
753
+ typeof schema === 'object' &&
754
+ 'properties' in schema &&
755
+ schema.properties) {
753
756
  return find__default["default"](Object.keys(schema.properties), function (propName) {
754
757
  var prop = schema.properties[propName];
755
- return (prop.type === 'string' ||
756
- prop.type === 'number' ||
757
- prop.type === 'integer');
758
+ return (prop &&
759
+ typeof prop === 'object' &&
760
+ 'type' in prop &&
761
+ (prop.type === 'string' ||
762
+ prop.type === 'number' ||
763
+ prop.type === 'integer'));
758
764
  });
759
765
  }
760
766
  return undefined;
@@ -2554,6 +2560,7 @@ var mapStateToLabelProps = function (state, props) {
2554
2560
  config: getConfig(state),
2555
2561
  renderers: props.renderers || getRenderers(state),
2556
2562
  cells: props.cells || getCells(state),
2563
+ uischema: uischema,
2557
2564
  };
2558
2565
  };
2559
2566
  var computeChildLabel = function (data, childPath, childLabelProp, schema, rootSchema, translateFct, uiSchema) {