Feat: Remove the rotation state of the button that parses the document #7008 (#7009)

### What problem does this PR solve?

Feat: Remove the rotation state of the button that parses the document
#7008
### Type of change


- [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
balibabu 2025-04-14 18:50:11 +08:00 committed by GitHub
parent 0a0c1edce3
commit ed352710ec
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 6 deletions

View File

@ -325,6 +325,10 @@ export const useRunNextDocument = () => {
run: number;
shouldDelete: boolean;
}) => {
queryClient.invalidateQueries({
queryKey: ['fetchDocumentList'],
});
const ret = await kbService.document_run({
doc_ids: documentIds,
run,

View File

@ -90,9 +90,7 @@ export const ParsingStatusCell = ({ record }: IProps) => {
const text = record.run;
const runningStatus = RunningStatusMap[text];
const { t } = useTranslation();
const { handleRunDocumentByIds, loading } = useHandleRunDocumentByIds(
record.id,
);
const { handleRunDocumentByIds } = useHandleRunDocumentByIds(record.id);
const isRunning = isParserRunning(text);
@ -130,9 +128,7 @@ export const ParsingStatusCell = ({ record }: IProps) => {
cancelText={t('common.cancel')}
>
<div
className={classNames(styles.operationIcon, {
[styles.operationIconSpin]: loading,
})}
className={classNames(styles.operationIcon)}
onClick={
record.chunk_num === 0 ? handleOperationIconClick(false) : () => {}
}