SelectOptionGroup throws a warning

a warning is triggered when there are no items in the optgroup