@jsonforms/core 3.5.0-beta.1 → 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
|
|
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';
|
|
@@ -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
|
|
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
|
}
|