From d9839e5ec62354fd93a50e6ab8c7fe8efe7291fa Mon Sep 17 00:00:00 2001 From: twwu Date: Tue, 16 Sep 2025 10:59:14 +0800 Subject: [PATCH] fix(api): correct variable name from 'apiaBaseUrl' to 'apiBaseUrl' in Service API components --- web/app/components/datasets/extra-info/index.tsx | 2 +- .../components/datasets/extra-info/service-api/card.tsx | 8 ++++---- .../components/datasets/extra-info/service-api/index.tsx | 6 +++--- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/web/app/components/datasets/extra-info/index.tsx b/web/app/components/datasets/extra-info/index.tsx index fae4371a9b..5a801fd79f 100644 --- a/web/app/components/datasets/extra-info/index.tsx +++ b/web/app/components/datasets/extra-info/index.tsx @@ -30,7 +30,7 @@ const ExtraInfo = ({ )} diff --git a/web/app/components/datasets/extra-info/service-api/card.tsx b/web/app/components/datasets/extra-info/service-api/card.tsx index 8f92f7a5b8..8ea3473e1a 100644 --- a/web/app/components/datasets/extra-info/service-api/card.tsx +++ b/web/app/components/datasets/extra-info/service-api/card.tsx @@ -15,12 +15,12 @@ import SecretKeyModal from '@/app/components/develop/secret-key/secret-key-modal type CardProps = { apiEnabled: boolean - apiaBaseUrl: string + apiBaseUrl: string } const Card = ({ apiEnabled, - apiaBaseUrl, + apiBaseUrl, }: CardProps) => { const { t } = useTranslation() const datasetId = useDatasetDetailContextWithSelector(state => state.dataset?.id) @@ -90,11 +90,11 @@ const Card = ({
- {apiaBaseUrl} + {apiBaseUrl}
diff --git a/web/app/components/datasets/extra-info/service-api/index.tsx b/web/app/components/datasets/extra-info/service-api/index.tsx index fc8d421c0d..3daa58a021 100644 --- a/web/app/components/datasets/extra-info/service-api/index.tsx +++ b/web/app/components/datasets/extra-info/service-api/index.tsx @@ -8,13 +8,13 @@ import Card from './card' type ServiceApiProps = { expand: boolean - apiaBaseUrl: string + apiBaseUrl: string apiEnabled: boolean } const ServiceApi = ({ expand, - apiaBaseUrl, + apiBaseUrl, apiEnabled, }: ServiceApiProps) => { const { t } = useTranslation() @@ -56,7 +56,7 @@ const ServiceApi = ({