Added "none" option to client select (#3510)
This commit is contained in:
parent
3965282401
commit
f908ed8a00
1 changed files with 7 additions and 3 deletions
|
@ -52,10 +52,14 @@ export const ClientSelect = ({
|
|||
[search]
|
||||
);
|
||||
|
||||
const convert = (clients: ClientRepresentation[]) =>
|
||||
clients.map((option) => (
|
||||
const convert = (clients: ClientRepresentation[]) => [
|
||||
<SelectOption key="empty" value="">
|
||||
{t("common:none")}
|
||||
</SelectOption>,
|
||||
...clients.map((option) => (
|
||||
<SelectOption key={option.id} value={option.clientId} />
|
||||
));
|
||||
)),
|
||||
];
|
||||
|
||||
return (
|
||||
<FormGroup
|
||||
|
|
Loading…
Reference in a new issue