diff --git a/web/app/components/datasets/documents/detail/completed/batch-action.tsx b/web/app/components/datasets/documents/detail/completed/batch-action.tsx index 3bed21df96..7a55784e70 100644 --- a/web/app/components/datasets/documents/detail/completed/batch-action.tsx +++ b/web/app/components/datasets/documents/detail/completed/batch-action.tsx @@ -1,9 +1,11 @@ import React, { type FC } from 'react' import { RiCheckboxCircleLine, RiCloseCircleLine, RiDeleteBinLine } from '@remixicon/react' import Divider from '@/app/components/base/divider' +import classNames from '@/utils/classnames' type IBatchActionProps = { - selectedSegmentIds: string[] + className?: string + selectedIds: string[] onBatchEnable: () => Promise onBatchDisable: () => Promise onBatchDelete: () => Promise @@ -11,18 +13,19 @@ type IBatchActionProps = { } const BatchAction: FC = ({ - selectedSegmentIds, + className, + selectedIds, onBatchEnable, onBatchDisable, onBatchDelete, onCancel, }) => { return ( -
+
- {selectedSegmentIds.length} + {selectedIds.length} Selected
diff --git a/web/models/datasets.ts b/web/models/datasets.ts index ed4ab2fb7d..c2bdedaf62 100644 --- a/web/models/datasets.ts +++ b/web/models/datasets.ts @@ -591,7 +591,7 @@ export const DEFAULT_WEIGHTED_SCORE = { export type ChildChunkType = 'automatic' | 'customized' export type ChildChunkDetail = { - id: number + id: string position: number segment_id: string content: string