Skip to content

Commit

Permalink
Add default value for Queue count to avoid failed prop type
Browse files Browse the repository at this point in the history
(cherry picked from commit 43ed7730f08de7baddbdafcccd99370258593221)
  • Loading branch information
mynameisbogdan committed Oct 28, 2023
1 parent bd25c9e commit 2c8e0b1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions frontend/src/Activity/Queue/Queue.js
Expand Up @@ -338,4 +338,8 @@ Queue.propTypes = {
onRemoveSelectedPress: PropTypes.func.isRequired
};

Queue.defaultProps = {
count: 0
};

export default Queue;

0 comments on commit 2c8e0b1

Please sign in to comment.