mirror of
https://github.com/wassname/Open-Assistant.git
synced 2026-08-15 12:05:19 +08:00
Addressing review comments
This commit is contained in:
@@ -10,9 +10,7 @@ const UsersCell = () => {
|
||||
// Fetch and save the users.
|
||||
const [users, setUsers] = useState([]);
|
||||
const { isLoading } = useSWR("/api/admin/users", fetcher, {
|
||||
onSuccess: (data) => {
|
||||
setUsers(data);
|
||||
},
|
||||
onSuccess: setUsers,
|
||||
});
|
||||
|
||||
// Present users in a naive table.
|
||||
|
||||
Reference in New Issue
Block a user