0
Fork 0
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:
Xiao Yijun 2023-12-19 14:34:39 +08:00 committed by GitHub
parent bb4632e0e3
commit 1834d64759
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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) {