Fixed to use field that exists (#3338)

This commit is contained in:
Erik Jan de Wit 2022-09-16 10:58:00 +02:00 committed by GitHub
parent 50a673788f
commit 3ee77abcf4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -34,9 +34,9 @@ import { useAccess } from "../../context/access/Access";
import { ForbiddenSection } from "../../ForbiddenSection";
import { Results } from "./evaluate/Results";
import { ClientSelect } from "../../components/client/ClientSelect";
import { UserSelect } from "../../components/users/UserSelect";
import "./auth-evaluate.css";
import { UserSelect } from "../../components/users/UserSelect";
interface EvaluateFormInputs
extends Omit<ResourceEvaluation, "context" | "resources"> {

View file

@ -49,7 +49,7 @@ export const UserSelect = ({
max: 20,
};
if (search) {
params.name = search;
params.username = search;
}
if (values?.length && !search) {