mirror of
https://github.com/logto-io/logto.git
synced 2025-01-06 20:40:08 -05:00
fix(console): hide feature tag when standard connectors is unlimited (#5119)
This commit is contained in:
parent
bb4632e0e3
commit
1834d64759
1 changed files with 5 additions and 1 deletions
|
@ -48,7 +48,11 @@ function CreateConnectorForm({ onClose, isOpen: isFormOpen, type }: Props) {
|
|||
const { currentTenantId } = useContext(TenantsContext);
|
||||
const { data: currentPlan } = useSubscriptionPlan(currentTenantId);
|
||||
|
||||
const isStandardConnectorDisabled = !currentPlan?.quota.standardConnectorsLimit;
|
||||
const {
|
||||
quota: { standardConnectorsLimit },
|
||||
} = currentPlan ?? { quota: { standardConnectorsLimit: 0 } };
|
||||
|
||||
const isStandardConnectorDisabled = isCloud && standardConnectorsLimit === 0;
|
||||
|
||||
const groups = useMemo(() => {
|
||||
if (!factories || !existingConnectors) {
|
||||
|
|
Loading…
Reference in a new issue