Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Commit

Permalink
Fix an issue that caused the Order by select in Reviews blocks to alw…
Browse files Browse the repository at this point in the history
…ays be disabled (#11918)
  • Loading branch information
Aljullu authored Nov 23, 2023
1 parent d66eca1 commit 7ea573c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import './style.scss';

interface ReviewSortSelectProps {
onChange: ChangeEventHandler;
readOnly: boolean;
readOnly?: boolean;
value: 'most-recent' | 'highest-rating' | 'lowest-rating';
}

Expand Down
1 change: 0 additions & 1 deletion assets/js/blocks/reviews/frontend-block.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ const FrontendBlock = ( {
<ReviewSortSelect
value={ sortSelectValue }
onChange={ onChangeOrderby }
readOnly
/>
) }
<ReviewList attributes={ attributes } reviews={ reviews } />
Expand Down

0 comments on commit 7ea573c

Please sign in to comment.