@bluemarble/bm-components 0.0.24 → 0.0.25

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/esm/index.js CHANGED
@@ -14882,12 +14882,12 @@ function FormikAutocomplete(_a) {
14882
14882
  return props.options.find((option) => Object.values(option)[0] === defaultValue);
14883
14883
  }, []);
14884
14884
  const onChange = (_, newValue) => {
14885
- const key = option === null || option === void 0 ? void 0 : option.key;
14885
+ const value = option === null || option === void 0 ? void 0 : option.value;
14886
14886
  if (getOptionValue) {
14887
14887
  setValue(getOptionValue(newValue));
14888
14888
  }
14889
- else if (key) {
14890
- setValue(newValue[key]);
14889
+ else if (value) {
14890
+ setValue(newValue[value]);
14891
14891
  }
14892
14892
  else
14893
14893
  setValue(newValue);