Skip to content

Commit

Permalink
disable require onCancel function
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasOsti committed Dec 21, 2023
1 parent 4421b9a commit 9528601
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -540,7 +540,7 @@ const UniversalDiscoveryModule = (props) => {

UniversalDiscoveryModule.propTypes = {
onConfirm: PropTypes.func.isRequired,
onCancel: PropTypes.func.isRequired,
onCancel: PropTypes.func,
title: PropTypes.string.isRequired,
activeTab: PropTypes.string,
rootLocationId: PropTypes.number,
Expand Down Expand Up @@ -579,6 +579,7 @@ UniversalDiscoveryModule.propTypes = {
};

UniversalDiscoveryModule.defaultProps = {
onCancel: null,
activeTab: 'browse',
rootLocationId: 1,
startingLocationId: null,
Expand Down

0 comments on commit 9528601

Please sign in to comment.