fix: role permission add new scope display blank (#1592)
This commit is contained in:
parent
c43930fa7c
commit
ef3a2c52d8
@ -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) && (
|
||||
<BlockProvider {...props} block={'form'}>
|
||||
|
Loading…
Reference in New Issue
Block a user