fix: error reported when open data scope (#2202)

This commit is contained in:
katherinehhh 2023-07-07 09:42:10 +08:00 committed by GitHub
parent a266367105
commit 6496c65fc4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -12,7 +12,7 @@ export const useVariableOptions = ({ form, collectionField, rootCollection }: an
const formVariabele = useFormVariable({ blockForm: form, schema, rootCollection }); const formVariabele = useFormVariable({ blockForm: form, schema, rootCollection });
const iterationVariabele = useIterationVariable({ const iterationVariabele = useIterationVariable({
blockForm: form, blockForm: form,
currentCollection: collectionField.collectionName, currentCollection: collectionField?.collectionName,
schema, schema,
rootCollection, rootCollection,
}); });