# 'None' added to Enum choices

**URL:** <https://jsonforms.discourse.group/t/none-added-to-enum-choices/1753>\
**Category:** General\
**Created:** [October 6, 2023, 10:23am UTC](https://jsonforms.discourse.group/t/none-added-to-enum-choices/1753 "2023-10-06T10:23:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![GregDel](https://avatars.discourse-cdn.com/v4/letter/g/dec6dc/32.png) [@GregDel](https://jsonforms.discourse.group/u/GregDel)\
**Post date:** [October 6, 2023, 10:23am UTC](https://jsonforms.discourse.group/t/none-added-to-enum-choices/1753/1 "2023-10-06T10:23:07Z")

</div>

Hi all,

First of all thanks a lot for the great lib and support here 🙂

If I use a Control like:

```auto
{
 "type": "string",
 "enum": ["FOO", "BAR"]
}

```

within an array (with either default `Control` or `ListWithDetail`), I end up with an unwanted `None` option.

The same control placed outside of the Array does not show `None`.

The current example for Array shows it as well: [Array Example - JSON Forms](https://jsonforms.io/examples/array)

 ![Screenshot 2023-10-06 122139](https://global.discourse-cdn.com/free1/uploads/jsonforms/original/1X/71c50f8f05de5a4555c874993752bb5a65b231ae.png)

=\> Is there any way not to allow this choice?

---

<div class="post-metadata">

**Author:** ![sdirix](https://yyz2.discourse-cdn.com/free1/user_avatar/jsonforms.discourse.group/sdirix/32/1073_2.png) [@sdirix](https://jsonforms.discourse.group/u/sdirix)\
**Post date:** [October 9, 2023, 12:12pm UTC](https://jsonforms.discourse.group/t/none-added-to-enum-choices/1753/2 "2023-10-09T12:12:12Z")

</div>

Hi @GregDel,

Cells are rendered using the `cell`s renderers. To get rid off the hard coded `None` you will need to provide a custom enum cell renderer which [does not render the `None` option](https://github.com/eclipsesource/jsonforms/blob/a6fa3c867c45dfaa51446b289a4581aa3f7e531f/packages/material-renderers/src/mui-controls/MuiSelect.tsx#L68-L70).

Outside of the array there is no `None` options as the [Autocomplete renderer](https://github.com/eclipsesource/jsonforms/blob/a6fa3c867c45dfaa51446b289a4581aa3f7e531f/packages/material-renderers/src/mui-controls/MuiAutocomplete.tsx) is used in which the option can be removed, simply by deleting the text. This is not possible in a basic select.
