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]
|
[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
|
||||||
|
|
Loading…
Reference in a new issue