mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-08-04 23:00:30 +08:00
Fix: replace session page icons and fix nested list search functionality in filters (#13127)
### What problem does this PR solve? Fix: replace session page icons and fix nested list search functionality in filters ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
@@ -74,7 +74,7 @@ const FilterItem = memo(
|
||||
<FormControl>
|
||||
<div className="flex space-x-3">
|
||||
<Checkbox
|
||||
checked={field.value?.includes(item.id.toString())}
|
||||
checked={field.value?.includes?.(item.id.toString())}
|
||||
onCheckedChange={(checked: boolean) =>
|
||||
handleCheckChange({ checked, field, item })
|
||||
}
|
||||
|
||||
@@ -61,12 +61,12 @@ const filterNestedList = (
|
||||
return false;
|
||||
})
|
||||
.map((item) => {
|
||||
if (item.list && item.list.length > 0) {
|
||||
return {
|
||||
...item,
|
||||
list: filterNestedList(item.list, searchTerm),
|
||||
};
|
||||
}
|
||||
// if (item.list && item.list.length > 0) {
|
||||
// return {
|
||||
// ...item,
|
||||
// list: filterNestedList(item.list, searchTerm),
|
||||
// };
|
||||
// }
|
||||
return item;
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user