Skip to content

RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.

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

balibabued352710ecde
diff --git a/web/src/hooks/document-hooks.ts b/web/src/hooks/document-hooks.ts
index 37edeaac55..0cddd1591e 100644
--- a/web/src/hooks/document-hooks.ts
+++ b/web/src/hooks/document-hooks.ts
@@ -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,
diff --git a/web/src/pages/add-knowledge/components/knowledge-file/parsing-status-cell/index.tsx b/web/src/pages/add-knowledge/components/knowledge-file/parsing-status-cell/index.tsx
index 0de71d4f8c..bd77431ea8 100644
--- a/web/src/pages/add-knowledge/components/knowledge-file/parsing-status-cell/index.tsx
+++ b/web/src/pages/add-knowledge/components/knowledge-file/parsing-status-cell/index.tsx
@@ -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) : () => {}
}