title: TypeError: Cannot read properties of undefined (reading 'includes')
body: <p>TypeError: Cannot read properties of undefined (reading 'includes'). I got this mistake, but I can't get through and solve the problem. Error shows  this line </p>
  <pre><code>     {addOption &amp;&amp; addOption.length &amp;&amp; (
                        &lt;Select
                          onClick={(e) =&gt; e.stopPropagation()}
                          labelId=&quot;demo-customized-select-label&quot;
                          id=&quot;demo-customized-select&quot;
                          // value={addOption[i]}
                          value={addOption[i]}
                          multiple
                          onChange={(ev) =&gt; handleadd(ev, i)}
                          renderValue={() =&gt; {
                            return selectedOptionNames[i];
                          }}
                          input={&lt;BootstrapInput /&gt;}
                        &gt;
                          &lt;MenuItem value={1} disabled&gt;
                            FILE
                          &lt;/MenuItem&gt;
                          &lt;MenuItem value={2}&gt;
                            &lt;Checkbox checked={addOption[i].includes(2)} /&gt;
                            &lt;ListItemText&gt;{addOptionNames[1]}&lt;/ListItemText&gt;
                          &lt;/MenuItem&gt;
                          &lt;MenuItem value={3}&gt;
                            &lt;Checkbox checked={addOption[i].includes(3)} /&gt;
                            &lt;ListItemText&gt;{addOptionNames[2]}&lt;/ListItemText&gt;
                          &lt;/MenuItem&gt;
                          &lt;MenuItem value={4}&gt;
                            &lt;Checkbox checked={addOption[i].includes(4)} /&gt;
                            &lt;ListItemText&gt;{addOptionNames[3]}&lt;/ListItemText&gt;
                          &lt;/MenuItem&gt;
                        &lt;/Select&gt;
  </code></pre>