mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
### What problem does this PR solve? feat: The search box is displayed globally when the page is loaded for the first time #2247 ### Type of change - [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
@ -22,7 +22,7 @@ interface IProps {
|
||||
}
|
||||
|
||||
const SearchSidebar = ({ checkedList, setCheckedList }: IProps) => {
|
||||
const { list } = useNextFetchKnowledgeList();
|
||||
const { list, loading } = useNextFetchKnowledgeList();
|
||||
const ids = useMemo(() => list.map((x) => x.id), [list]);
|
||||
|
||||
const checkAll = list.length === checkedList.length;
|
||||
@ -67,6 +67,7 @@ const SearchSidebar = ({ checkedList, setCheckedList }: IProps) => {
|
||||
bordered
|
||||
dataSource={list}
|
||||
className={styles.list}
|
||||
loading={loading}
|
||||
renderItem={(item) => (
|
||||
<List.Item>
|
||||
<Checkbox value={item.id} className={styles.checkbox}>
|
||||
|
||||
Reference in New Issue
Block a user