Skip to content

Commit

Permalink
OpenConceptLab/ocl_issues#1144 | fixing about tab nav
Browse files Browse the repository at this point in the history
  • Loading branch information
snyaggarwal committed Dec 13, 2021
1 parent 15bcd68 commit d8bbf44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/collections/CollectionHomeHeader.jsx
Expand Up @@ -43,7 +43,7 @@ const CollectionHomeHeader = ({
const downloadFileName = isVersionedObject ? `${collection.type}-${collection.short_code}` : `${collection.type}-${collection.short_code}-${collection.id}`;
const tabConfig = get(config, `config.tabs.${tab}`);
const hasAccess = currentUserHasAccess();
const isExpandedHeader = () => !get(config, 'config.header.shrink', false) && tabConfig.type !== 'versions';
const isExpandedHeader = () => !get(config, 'config.header.shrink', false) && get(tabConfig, 'type') !== 'versions';
const [openHeader, setOpenHeader] = React.useState(isExpandedHeader);
const [deleteDialog, setDeleteDialog] = React.useState(false);
const [logoURL, setLogoURL] = React.useState(collection.logo_url)
Expand Down

0 comments on commit d8bbf44

Please sign in to comment.