Skip to content

Commit 369b64a

Browse files
committed
fix
1 parent 0a8f01b commit 369b64a

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

packages/core/src/util/path.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,14 @@ import range from 'lodash/range';
2828
import { Scopable } from '../models';
2929

3030
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 {
3137
return path1.concat(path2);
38+
}
3239
};
3340

3441
export { compose as composePaths };

packages/vue/vue/src/jsonFormsCompositions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export const rendererProps = <U = UISchemaElement>() => ({
6363
},
6464
path: {
6565
required: true as true,
66-
type: String
66+
type: Array as CompType<string[], ArrayConstructor>,
6767
},
6868
enabled: {
6969
required: false as false,

0 commit comments

Comments
 (0)