@plone/volto 15.0.0-alpha.0 → 15.0.0-alpha.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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Change Log
2
2
 
3
+ ## 15.0.0-alpha.1 (2022-02-09)
4
+
5
+ ### Bugfix
6
+
7
+ - Fix the `null` error in SelectAutoComplete Widget @iFlameing
8
+
3
9
  ## 15.0.0-alpha.0 (2022-02-09)
4
10
 
5
11
  ### Breaking
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  }
10
10
  ],
11
11
  "license": "MIT",
12
- "version": "15.0.0-alpha.0",
12
+ "version": "15.0.0-alpha.1",
13
13
  "repository": {
14
14
  "type": "git",
15
15
  "url": "git@github.com:plone/volto.git"
@@ -135,11 +135,11 @@ class SelectAutoComplete extends Component {
135
135
  }
136
136
 
137
137
  componentDidUpdate(prevProps, prevState) {
138
- const { value, choices = [] } = this.props;
138
+ const { value, choices } = this.props;
139
139
  if (
140
140
  this.state.termsPairsCache.length === 0 &&
141
141
  value?.length > 0 &&
142
- choices.length > 0
142
+ choices?.length > 0
143
143
  ) {
144
144
  this.setState((state) => ({
145
145
  termsPairsCache: [...state.termsPairsCache, ...choices],