fix: filter form block failed to connect templat block (#3457)

This commit is contained in:
katherinehhh 2024-01-29 17:04:21 +08:00 committed by GitHub
parent dad6072abb
commit a52816cc86
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -15,7 +15,7 @@ export const FilterFormBlockInitializer = ({ filterItems }) => {
templateWrap={(templateSchema, { item }) => {
const s = createFilterFormBlockSchema({
template: templateSchema,
collection: item.collectionName,
collection: item.name || item.collectionName,
});
if (item.template && item.mode === 'reference') {
s['x-template-key'] = item.template.key;