@plone/volto 16.32.0 → 16.32.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.draft CHANGED
@@ -1,8 +1,7 @@
1
- ## 16.32.0 (2024-08-16)
1
+ ## 16.32.1 (2024-08-28)
2
2
 
3
- ### Feature
3
+ ### Bugfix
4
4
 
5
- - The schema for the `ContentsPropertiesModal` can be enhanced using the `contentPropertiesSchemaEnhancer` setting.
6
- Also, the properties form is now prepopulated with values if all selected items share the same value. @davisagli [#6248](https://github.com/plone/volto/issues/6248)
5
+ - Fix error in `SortOn` component when no sort is selected. @davisagli [#6273](https://github.com/plone/volto/issues/6273)
7
6
 
8
7
 
Binary file
package/CHANGELOG.md CHANGED
@@ -8,6 +8,12 @@
8
8
 
9
9
  <!-- towncrier release notes start -->
10
10
 
11
+ ## 16.32.1 (2024-08-28)
12
+
13
+ ### Bugfix
14
+
15
+ - Fix error in `SortOn` component when no sort is selected. @davisagli [#6273](https://github.com/plone/volto/issues/6273)
16
+
11
17
  ## 16.32.0 (2024-08-16)
12
18
 
13
19
  ### Feature
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  }
10
10
  ],
11
11
  "license": "MIT",
12
- "version": "16.32.0",
12
+ "version": "16.32.1",
13
13
  "repository": {
14
14
  "type": "git",
15
15
  "url": "git@github.com:plone/volto.git"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plone/volto-slate",
3
- "version": "16.32.0",
3
+ "version": "16.32.1",
4
4
  "description": "Slate.js integration with Volto",
5
5
  "main": "src/index.js",
6
6
  "author": "European Environment Agency: IDM2 A-Team",
@@ -60,7 +60,7 @@ const SortOn = (props) => {
60
60
 
61
61
  const showSelectField = sortOnOptions.length > 1;
62
62
  if (!showSelectField && !activeSortOn) {
63
- return;
63
+ return null;
64
64
  }
65
65
  const value = {
66
66
  value: activeSortOn || intl.formatMessage(messages.noSelection),
@@ -1526,7 +1526,7 @@ class Contents extends Component {
1526
1526
  items={this.state.selected}
1527
1527
  values={map(this.state.selected, (id) =>
1528
1528
  find(this.state.items, { '@id': id }),
1529
- )}
1529
+ ).filter((item) => item)}
1530
1530
  />
1531
1531
  {this.state.showWorkflow && (
1532
1532
  <ContentsWorkflowModal