diff --git a/web/app/components/datasets/documents/list.tsx b/web/app/components/datasets/documents/list.tsx index cebf89e1c5..1c30c125c1 100644 --- a/web/app/components/datasets/documents/list.tsx +++ b/web/app/components/datasets/documents/list.tsx @@ -166,6 +166,8 @@ const DocumentList: FC = ({ const [e] = await asyncRunSafe(opApi({ datasetId, documentIds: selectedIds }) as Promise) if (!e) { + if (actionName === DocumentActionType.delete) + onSelectedIdChange([]) Toast.notify({ type: 'success', message: t('common.actionMsg.modifiedSuccessfully') }) onUpdate() }