Skip to content

Commit

Permalink
Backport #6273
Browse files Browse the repository at this point in the history
  • Loading branch information
davisagli committed Aug 28, 2024
1 parent 258babd commit 21d1bee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions news/6273.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix error in `SortOn` component when no sort is selected. @davisagli
2 changes: 1 addition & 1 deletion src/components/manage/Blocks/Search/components/SortOn.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ const SortOn = (props) => {

const showSelectField = sortOnOptions.length > 1;
if (!showSelectField && !activeSortOn) {
return;
return null;
}
const value = {
value: activeSortOn || intl.formatMessage(messages.noSelection),
Expand Down

0 comments on commit 21d1bee

Please sign in to comment.