Skip to content

Commit

Permalink
fix(form): fix appendSchemaByField not work
Browse files Browse the repository at this point in the history
  • Loading branch information
anncwb committed Dec 28, 2020
1 parent 3549043 commit 405d746
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Form/src/hooks/useFormEvents.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ export function useFormEvents({
const schemaList: FormSchema[] = cloneDeep(unref(getSchema));

const index = schemaList.findIndex((schema) => schema.field === prefixField);
const hasInList = schemaList.some((item) => item.field === schema.field);
const hasInList = schemaList.some((item) => item.field === prefixField);

if (!hasInList) return;

Expand Down

0 comments on commit 405d746

Please sign in to comment.