Skip to content

Commit

Permalink
Fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
mariia-aloshyna committed Oct 13, 2023
1 parent ae50bd4 commit 69396b4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Instance/InstanceDetails/InstanceDetails.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ const InstanceDetails = forwardRef(({
const intl = useIntl();
const stripes = useStripes();
const { okapi: { tenant: tenantId } } = stripes;

const location = useLocation();
const searchParams = new URLSearchParams(location.search);

Expand Down
5 changes: 3 additions & 2 deletions src/ViewInstance.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ import makeConnectedInstance from './ConnectedInstance';
import withLocation from './withLocation';
import InstancePlugin from './components/InstancePlugin';
import {
getDate,
isUserInConsortiumMode,
getUserTenantsPermissions,
handleKeyCommand,
isInstanceShadowCopy,
Expand Down Expand Up @@ -1086,7 +1086,8 @@ ViewInstance.propTypes = {
}).isRequired,
}).isRequired,
okapi: PropTypes.shape({
tenant: PropTypes.string.isRequired
tenant: PropTypes.string.isRequired,
token: PropTypes.string.isRequired
}).isRequired,
tagsEnabled: PropTypes.bool,
updateLocation: PropTypes.func.isRequired,
Expand Down

0 comments on commit 69396b4

Please sign in to comment.