From bbbfd01d7b9fb33aab10a8f46b46feb847c1be04 Mon Sep 17 00:00:00 2001 From: simeng-li Date: Mon, 16 Dec 2024 16:21:50 +0800 Subject: [PATCH] fix(console): should not apply dev guard (#6889) should not apply dev guard --- .../console/src/pages/TenantSettings/Subscription/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/console/src/pages/TenantSettings/Subscription/index.tsx b/packages/console/src/pages/TenantSettings/Subscription/index.tsx index 9343e716e..6dbae433f 100644 --- a/packages/console/src/pages/TenantSettings/Subscription/index.tsx +++ b/packages/console/src/pages/TenantSettings/Subscription/index.tsx @@ -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 }, })