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 ceea777
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ export const SearchTextContext = createContext();
export const DropdownPortalRefContext = createContext();

const UniversalDiscoveryModule = (props) => {
console.log(props);

Check failure on line 186 in src/bundle/ui-dev/src/modules/universal-discovery/universal.discovery.module.js

View workflow job for this annotation

GitHub Actions / Frontend build test

Unexpected console statement
const { restInfo } = props;
const adminUiConfig = getAdminUiConfig();
const { tabs } = adminUiConfig.universalDiscoveryWidget;
Expand Down Expand Up @@ -540,7 +541,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 +580,7 @@ UniversalDiscoveryModule.propTypes = {
};

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

0 comments on commit ceea777

Please sign in to comment.