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

Commit

Permalink
Adjust PropTypes definition and fix block error when store has no rev…
Browse files Browse the repository at this point in the history
…iews
  • Loading branch information
thealexandrelara committed Jun 16, 2023
1 parent 1a81f45 commit 4d660a5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion assets/js/blocks/reviews/editor-container-block.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ EditorContainerBlock.propTypes = {
attributes: PropTypes.object.isRequired,
icon: PropTypes.node.isRequired,
name: PropTypes.string.isRequired,
noReviewsPlaceholder: PropTypes.element.isRequired,
noReviewsPlaceholder: PropTypes.elementType.isRequired,
className: PropTypes.string,
};

Expand Down
2 changes: 1 addition & 1 deletion assets/js/blocks/reviews/reviews-by-category/block.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ const ReviewsByCategoryEditor = ( {
'Reviews by Category',
'woo-gutenberg-products-block'
) }
noReviewsPlaceholder={ NoReviewsPlaceholder() }
noReviewsPlaceholder={ NoReviewsPlaceholder }
/>
</>
);
Expand Down

0 comments on commit 4d660a5

Please sign in to comment.