From a430284aa21e3ae1f0d5654e55b2ad2852519cc2 Mon Sep 17 00:00:00 2001 From: wwf <yearningwang@iqtogether.com> Date: 星期三, 04 六月 2025 15:17:49 +0800 Subject: [PATCH] 初始化 --- app/components/datasets/common/document-status-with-action/index-failed.tsx | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/app/components/datasets/common/document-status-with-action/index-failed.tsx b/app/components/datasets/common/document-status-with-action/index-failed.tsx index 802e3d8..3731176 100644 --- a/app/components/datasets/common/document-status-with-action/index-failed.tsx +++ b/app/components/datasets/common/document-status-with-action/index-failed.tsx @@ -6,7 +6,6 @@ import StatusWithAction from './status-with-action' import { getErrorDocs, retryErrorDocs } from '@/service/datasets' import type { IndexingStatusResponse } from '@/models/datasets' -import { noop } from 'lodash-es' type Props = { datasetId: string @@ -63,7 +62,7 @@ description={`${errorDocs?.total} ${t('dataset.docsFailedNotice')}`} actionText={t('dataset.retry')} disabled={indexState.value === 'retry'} - onAction={indexState.value === 'error' ? onRetryErrorDocs : noop} + onAction={indexState.value === 'error' ? onRetryErrorDocs : () => { }} /> ) } -- Gitblit v1.8.0