From 77950e48c76f4a3b29d01831d43039caba29888a Mon Sep 17 00:00:00 2001
From: wwf <1971391498@qq.com>
Date: 星期二, 18 十一月 2025 14:12:42 +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