diff --git a/packages/core/client/src/block-provider/FormBlockProvider.tsx b/packages/core/client/src/block-provider/FormBlockProvider.tsx index c9ac36994..0f6e0e7ae 100644 --- a/packages/core/client/src/block-provider/FormBlockProvider.tsx +++ b/packages/core/client/src/block-provider/FormBlockProvider.tsx @@ -72,7 +72,8 @@ export const FormBlockProvider = (props) => { detailFlag = __collection === collection; } } - const createFlag = (currentCollection.name === collection && !isEmptyRecord) || !currentCollection.name; + const createFlag = + (currentCollection.name === (collection?.name || collection) && !isEmptyRecord) || !currentCollection.name; return ( (detailFlag || createFlag) && (