From a52816cc8652b977e13bb6cfe9da250859a3da63 Mon Sep 17 00:00:00 2001 From: katherinehhh Date: Mon, 29 Jan 2024 17:04:21 +0800 Subject: [PATCH] fix: filter form block failed to connect templat block (#3457) --- .../src/schema-initializer/items/FilterFormBlockInitializer.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/client/src/schema-initializer/items/FilterFormBlockInitializer.tsx b/packages/core/client/src/schema-initializer/items/FilterFormBlockInitializer.tsx index 0edcd1a27..e48303b1c 100644 --- a/packages/core/client/src/schema-initializer/items/FilterFormBlockInitializer.tsx +++ b/packages/core/client/src/schema-initializer/items/FilterFormBlockInitializer.tsx @@ -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;