From 1350599c0b0084ff62f200c0a6df52d8fe4b1aa1 Mon Sep 17 00:00:00 2001 From: zxhlyh Date: Thu, 7 Dec 2023 10:38:33 +0800 Subject: [PATCH] fix: process document priority tip (#1712) --- .../components/datasets/create/embedding-process/index.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/web/app/components/datasets/create/embedding-process/index.tsx b/web/app/components/datasets/create/embedding-process/index.tsx index e985698d32..0cea26712e 100644 --- a/web/app/components/datasets/create/embedding-process/index.tsx +++ b/web/app/components/datasets/create/embedding-process/index.tsx @@ -16,6 +16,7 @@ import { fetchIndexingStatusBatch as doFetchIndexingStatus, fetchIndexingEstimat import { DataSourceType } from '@/models/datasets' import NotionIcon from '@/app/components/base/notion-icon' import PriorityLabel from '@/app/components/billing/priority-label' +import { Plan } from '@/app/components/billing/type' import { ZapFast } from '@/app/components/base/icons/src/vender/solid/general' import UpgradeBtn from '@/app/components/billing/upgrade-btn' import { useProviderContext } from '@/context/provider-context' @@ -82,7 +83,7 @@ const RuleDetail: FC<{ sourceData?: ProcessRuleResponse }> = ({ sourceData }) => const EmbeddingProcess: FC = ({ datasetId, batchId, documents = [], indexingType }) => { const { t } = useTranslation() - const { enableBilling } = useProviderContext() + const { enableBilling, plan } = useProviderContext() const getFirstDocument = documents[0] @@ -198,7 +199,7 @@ const EmbeddingProcess: FC = ({ datasetId, batchId, documents = [], index { - enableBilling && ( + enableBilling && plan.type !== Plan.team && (