fix: formBlockProvider block display (#3877)

This commit is contained in:
katherinehhh 2024-03-30 09:03:17 +08:00 committed by GitHub
parent 6d0d21ede2
commit eb9b19ddcf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -106,8 +106,9 @@ export const FormBlockProvider = withDynamicSchemaProps((props) => {
}
}
const createFlag =
(currentCollection.name === (collection?.name || collection) && !isDetailBlock) || !currentCollection.name;
(currentCollection.name === (collection?.name || collection) && !isDetailBlock) ||
!currentCollection.name ||
!collection;
if (!detailFlag && !createFlag && !isCusomeizeCreate) {
return null;
}