wwf
2 天以前 a430284aa21e3ae1f0d5654e55b2ad2852519cc2
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 : () => { }}
    />
  )
}