haya-select 1.0.61 → 1.0.62

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "haya-select",
3
- "version": "1.0.61",
3
+ "version": "1.0.62",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -118,7 +118,7 @@ export default memo(shapeComponent(class HayaSelect extends ShapeComponent {
118
118
  useEffect(() => {
119
119
  const currentOptionIds = this.s.currentOptions?.map((currentOption) => currentOption.value)
120
120
 
121
- if (this.props.values && anythingDifferent(currentOptionIds, this.props.values)) {
121
+ if (this.props.values && anythingDifferent(currentOptionIds, this.props.values) && typeof this.props.options == "function") {
122
122
  this.setCurrentFromGivenValues()
123
123
  }
124
124
  }, [this.props.values])