feat: clear selected IDs on document deletion action in DocumentList component

This commit is contained in:
twwu 2025-06-23 16:38:19 +08:00
parent 916a8c76e7
commit 2414dbb5f8
1 changed files with 2 additions and 0 deletions

View File

@ -166,6 +166,8 @@ const DocumentList: FC<IDocumentListProps> = ({
const [e] = await asyncRunSafe<CommonResponse>(opApi({ datasetId, documentIds: selectedIds }) as Promise<CommonResponse>)
if (!e) {
if (actionName === DocumentActionType.delete)
onSelectedIdChange([])
Toast.notify({ type: 'success', message: t('common.actionMsg.modifiedSuccessfully') })
onUpdate()
}