We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0a8f01b commit 369b64aCopy full SHA for 369b64a
packages/core/src/util/path.ts
@@ -28,7 +28,14 @@ import range from 'lodash/range';
28
import { Scopable } from '../models';
29
30
export const compose = (path1: string[], path2: string[]) => {
31
+
32
+ if (isEmpty(path1)) {
33
+ return path2;
34
+ } else if (isEmpty(path2)) {
35
+ return path1;
36
+ } else {
37
return path1.concat(path2);
38
+ }
39
};
40
41
export { compose as composePaths };
packages/vue/vue/src/jsonFormsCompositions.ts
@@ -63,7 +63,7 @@ export const rendererProps = <U = UISchemaElement>() => ({
63
},
64
path: {
65
required: true as true,
66
- type: String
+ type: Array as CompType<string[], ArrayConstructor>,
67
68
enabled: {
69
required: false as false,
0 commit comments