mirror of
https://github.com/wassname/Open-Assistant.git
synced 2026-08-19 11:50:35 +08:00
@@ -84,7 +84,7 @@ export const DataTable = <T,>({
|
||||
} else {
|
||||
newValues = filterValues.map((oldValue) => (oldValue.id === value.id ? value : oldValue));
|
||||
}
|
||||
onFilterChange(newValues);
|
||||
onFilterChange && onFilterChange(newValues);
|
||||
};
|
||||
return (
|
||||
<>
|
||||
|
||||
@@ -76,14 +76,14 @@ export const UserTable = memo(function UserTable() {
|
||||
|
||||
const toPreviousPage = () => {
|
||||
setPagination({
|
||||
cursor: data.prev,
|
||||
cursor: data?.prev || "",
|
||||
direction: "back",
|
||||
});
|
||||
};
|
||||
|
||||
const toNextPage = () => {
|
||||
setPagination({
|
||||
cursor: data.next,
|
||||
cursor: data?.next || "",
|
||||
direction: "forward",
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user