@jsonforms/core 3.5.0-beta.0 → 3.5.0-beta.2

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.
@@ -15,7 +15,7 @@ import merge from 'lodash/merge';
15
15
  import cloneDeep from 'lodash/cloneDeep';
16
16
  import setFp from 'lodash/fp/set';
17
17
  import unsetFp from 'lodash/fp/unset';
18
- import { isFunction, isEqual as isEqual$1 } from 'lodash';
18
+ import isFunction from 'lodash/isFunction';
19
19
  import maxBy from 'lodash/maxBy';
20
20
  import remove from 'lodash/remove';
21
21
  import endsWith from 'lodash/endsWith';
@@ -286,7 +286,7 @@ const resolveSchemaWithSegments = (schema, pathSegments, rootSchema) => {
286
286
  if (isEmpty(schema)) {
287
287
  return undefined;
288
288
  }
289
- if (schema.$ref) {
289
+ if (typeof schema.$ref === 'string') {
290
290
  schema = resolveSchema(rootSchema, schema.$ref, rootSchema);
291
291
  }
292
292
  if (!pathSegments || pathSegments.length === 0) {
@@ -2461,7 +2461,7 @@ const computeChildLabel = (data, childPath, childLabelProp, schema, rootSchema,
2461
2461
  }
2462
2462
  else if (isOneOfEnumSchema(childSchema)) {
2463
2463
  const oneOfArray = childSchema.oneOf;
2464
- const oneOfSchema = oneOfArray.find((e) => isEqual$1(e.const, currentValue));
2464
+ const oneOfSchema = oneOfArray.find((e) => isEqual(e.const, currentValue));
2465
2465
  if (oneOfSchema) {
2466
2466
  enumOption = oneOfToEnumOptionMapper(oneOfSchema, translateFct, getI18nKeyPrefix(oneOfSchema, undefined, childPath + '.' + childLabelProp));
2467
2467
  }