Skip to content

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

fix: preserve selected row IDs without filtering by current list (#17994)

chanx2eb1ef6c673d
diff --git a/web/src/hooks/logic-hooks/use-row-selection.ts b/web/src/hooks/logic-hooks/use-row-selection.ts
index af6cf37b5f..88e289a3c8 100644
--- a/web/src/hooks/logic-hooks/use-row-selection.ts
+++ b/web/src/hooks/logic-hooks/use-row-selection.ts
@@ -42,7 +42,8 @@ export function useSelectedIds<T extends Array<{ id: string }>>(
.map((x) => x.id);
} else {
// ID-based selection (when getRowId is used)
- return selectionKeys.filter((id) => list.some((item) => item.id === id));
+ // return selectionKeys.filter((id) => list.some((item) => item.id === id));
+ return selectionKeys;
}
}, [list, rowSelection]);