@7shifts/sous-chef 3.88.1 → 3.88.2-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -10939,7 +10939,7 @@ var useSelectField = function useSelectField(_ref) {
10939
10939
  var _getDataProps = getDataProps(rest),
10940
10940
  dataProps = _getDataProps.dataProps;
10941
10941
  // Detect if options are grouped
10942
- var hasGroupedOptions = options.some(function (opt) {
10942
+ var hasGroupedOptions = (options || []).some(function (opt) {
10943
10943
  return 'options' in opt;
10944
10944
  });
10945
10945
  var useGroupedCreate = onCreate && hasGroupedOptions;
@@ -12319,7 +12319,7 @@ var MultiSelectField = function MultiSelectField(_ref) {
12319
12319
  return setIsMenuInputFocus(isFocused);
12320
12320
  };
12321
12321
  // Detect if options are grouped
12322
- var hasGroupedOptions = options.some(function (opt) {
12322
+ var hasGroupedOptions = (options || []).some(function (opt) {
12323
12323
  return 'options' in opt;
12324
12324
  });
12325
12325
  var useGroupedCreate = onCreate && hasGroupedOptions;