mirror of
https://github.com/Myzel394/kleckrelay-website.git
synced 2025-06-19 15:55:26 +02:00
fix: remove console.log
This commit is contained in:
parent
e6cdfcbc5a
commit
1f46671dc4
@ -18,7 +18,7 @@ import {
|
|||||||
SelectProps,
|
SelectProps,
|
||||||
} from "@mui/material"
|
} from "@mui/material"
|
||||||
|
|
||||||
import {GetAdminUsersResponse, getAdminUsers} from "~/apis"
|
import {getAdminUsers, GetAdminUsersResponse} from "~/apis"
|
||||||
import {useUser} from "~/hooks"
|
import {useUser} from "~/hooks"
|
||||||
|
|
||||||
export interface UsersSelectFieldProps extends Omit<SelectProps, "onChange" | "value"> {
|
export interface UsersSelectFieldProps extends Omit<SelectProps, "onChange" | "value"> {
|
||||||
@ -73,12 +73,10 @@ export default function UsersSelectField({
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log(event.target.value)
|
|
||||||
// Since there will probably only be a few admin users, n^2 is fine
|
// Since there will probably only be a few admin users, n^2 is fine
|
||||||
const selectedUsers = (event.target.value as string[]).map(id =>
|
const selectedUsers = (event.target.value as string[]).map(id =>
|
||||||
users!.find(user => user.id === id),
|
users!.find(user => user.id === id),
|
||||||
)
|
)
|
||||||
console.log(selectedUsers)
|
|
||||||
|
|
||||||
if (!selectedUsers) {
|
if (!selectedUsers) {
|
||||||
return
|
return
|
||||||
|
Loading…
x
Reference in New Issue
Block a user