mirror of
https://github.com/logto-io/logto.git
synced 2024-12-16 20:26:19 -05:00
fix(console): should not apply dev guard (#6889)
should not apply dev guard
This commit is contained in:
parent
a6aa235289
commit
bbbfd01d7b
1 changed files with 2 additions and 2 deletions
|
@ -5,7 +5,7 @@ import useSWR from 'swr';
|
|||
import { useCloudApi } from '@/cloud/hooks/use-cloud-api';
|
||||
import { type TenantUsageAddOnSkus, type NewSubscriptionPeriodicUsage } from '@/cloud/types/router';
|
||||
import PageMeta from '@/components/PageMeta';
|
||||
import { isCloud, isDevFeaturesEnabled } from '@/consts/env';
|
||||
import { isCloud } from '@/consts/env';
|
||||
import { SubscriptionDataContext } from '@/contexts/SubscriptionDataProvider';
|
||||
import { TenantsContext } from '@/contexts/TenantsProvider';
|
||||
import { pickupFeaturedLogtoSkus } from '@/utils/subscription';
|
||||
|
@ -37,7 +37,7 @@ function Subscription() {
|
|||
const { data: usageAddOnSkus, error: usageAddOnSkusError } = useSWR<
|
||||
TenantUsageAddOnSkus,
|
||||
ResponseError
|
||||
>(isCloud && isDevFeaturesEnabled && `/api/tenants/${currentTenantId}/add-on-skus`, async () =>
|
||||
>(isCloud && `/api/tenants/${currentTenantId}/add-on-skus`, async () =>
|
||||
cloudApi.get(`/api/tenants/:tenantId/subscription/add-on-skus`, {
|
||||
params: { tenantId: currentTenantId },
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue