Skip to content

Commit

Permalink
fix(json-schema): remove array patch state logic
Browse files Browse the repository at this point in the history
  • Loading branch information
janryWang committed May 21, 2021
1 parent 30df44b commit 73bd9a4
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions packages/json-schema/src/transformer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -306,11 +306,7 @@ const getBaseProps = (

const patchState = (state: any, target: any) => {
const patch = (target: any, path: string[]) => {
if (
(isArr(target) || isPlainObj(target)) &&
path[0] !== 'dataSource' &&
path[0] !== 'enum'
) {
if (isPlainObj(target)) {
each(target, (value, key) => {
patch(value, path.concat(key))
})
Expand Down

0 comments on commit 73bd9a4

Please sign in to comment.