Added "none" option to client select (#3510)

This commit is contained in:
Erik Jan de Wit 2022-10-10 23:46:12 +02:00 committed by GitHub
parent 3965282401
commit f908ed8a00
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -52,10 +52,14 @@ export const ClientSelect = ({
[search] [search]
); );
const convert = (clients: ClientRepresentation[]) => const convert = (clients: ClientRepresentation[]) => [
clients.map((option) => ( <SelectOption key="empty" value="">
{t("common:none")}
</SelectOption>,
...clients.map((option) => (
<SelectOption key={option.id} value={option.clientId} /> <SelectOption key={option.id} value={option.clientId} />
)); )),
];
return ( return (
<FormGroup <FormGroup