mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-24 18:24:20 +00:00
fix: fix linting error
This commit is contained in:
parent
169bb62de8
commit
a7881a9bdd
1 changed files with 10 additions and 10 deletions
|
@ -78,6 +78,16 @@ export function UserDataTable({
|
||||||
setSelectedUserId(null);
|
setSelectedUserId(null);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// Update local sorting state when currentSort prop changes
|
||||||
|
React.useEffect(() => {
|
||||||
|
if (currentSort) {
|
||||||
|
setSorting([{
|
||||||
|
id: currentSort.sortBy,
|
||||||
|
desc: currentSort.sortOrder === 'desc'
|
||||||
|
}]);
|
||||||
|
}
|
||||||
|
}, [currentSort]);
|
||||||
|
|
||||||
if (selectedUserId) {
|
if (selectedUserId) {
|
||||||
return (
|
return (
|
||||||
<UserInfoView
|
<UserInfoView
|
||||||
|
@ -89,16 +99,6 @@ export function UserDataTable({
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Update local sorting state when currentSort prop changes
|
|
||||||
React.useEffect(() => {
|
|
||||||
if (currentSort) {
|
|
||||||
setSorting([{
|
|
||||||
id: currentSort.sortBy,
|
|
||||||
desc: currentSort.sortOrder === 'desc'
|
|
||||||
}]);
|
|
||||||
}
|
|
||||||
}, [currentSort]);
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="rounded-lg custom-border relative">
|
<div className="rounded-lg custom-border relative">
|
||||||
<div className="overflow-x-auto">
|
<div className="overflow-x-auto">
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue