fix: filter form block failed to connect templat block (#3457)
This commit is contained in:
parent
dad6072abb
commit
a52816cc86
@ -15,7 +15,7 @@ export const FilterFormBlockInitializer = ({ filterItems }) => {
|
|||||||
templateWrap={(templateSchema, { item }) => {
|
templateWrap={(templateSchema, { item }) => {
|
||||||
const s = createFilterFormBlockSchema({
|
const s = createFilterFormBlockSchema({
|
||||||
template: templateSchema,
|
template: templateSchema,
|
||||||
collection: item.collectionName,
|
collection: item.name || item.collectionName,
|
||||||
});
|
});
|
||||||
if (item.template && item.mode === 'reference') {
|
if (item.template && item.mode === 'reference') {
|
||||||
s['x-template-key'] = item.template.key;
|
s['x-template-key'] = item.template.key;
|
||||||
|
Loading…
Reference in New Issue
Block a user