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:
chanx
2026-02-12 19:48:35 +08:00
committed by GitHub
parent 5885f150ab
commit b922a5cbdf
8 changed files with 27 additions and 16 deletions

View File

@@ -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 })
}

View File

@@ -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;
});
};