Commit 405d7466dd935a845e91f4c6ece76b1475507eb7
1 parent
3549043f
fix(form): fix appendSchemaByField not work
Showing
1 changed file
with
1 additions
and
1 deletions
src/components/Form/src/hooks/useFormEvents.ts
... | ... | @@ -117,7 +117,7 @@ export function useFormEvents({ |
117 | 117 | const schemaList: FormSchema[] = cloneDeep(unref(getSchema)); |
118 | 118 | |
119 | 119 | const index = schemaList.findIndex((schema) => schema.field === prefixField); |
120 | - const hasInList = schemaList.some((item) => item.field === schema.field); | |
120 | + const hasInList = schemaList.some((item) => item.field === prefixField); | |
121 | 121 | |
122 | 122 | if (!hasInList) return; |
123 | 123 | ... | ... |