Skip to content

Commit

Permalink
Fixing source/collection version form close
Browse files Browse the repository at this point in the history
  • Loading branch information
snyaggarwal committed Aug 8, 2023
1 parent 05d919e commit d1c525c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/collections/CollectionHomeTabs.jsx
Expand Up @@ -47,7 +47,7 @@ const CollectionHomeTabs = props => {
setExpansionForm(true)
}

const currentResourceURL = isVersionedObject ? collection.url : (expansion.url || collection.version_url)
const currentResourceURL = isVersionedObject ? collection?.url : (expansion?.url || collection?.version_url)
const getTABHref = tabConfig => {
let href = '';
if(tabConfig?.type === 'about')
Expand Down
2 changes: 1 addition & 1 deletion src/components/sources/SourceHomeTabs.jsx
Expand Up @@ -65,7 +65,7 @@ const SourceHomeTabs = props => {
const closeMappingForm = () => closeDrawer(() => setMappingForm(false))
const closeConceptForm = () => closeDrawer(() => setConceptForm(false))
const closeVersionForm = () => closeDrawer(() => setVersionForm(false))
const currentResourceURL = isVersionedObject ? source.url : source.version_url
const currentResourceURL = isVersionedObject ? source?.url : source?.version_url
const getTABHref = tabConfig => {
let href = '';
if(tabConfig.type === 'about')
Expand Down

0 comments on commit d1c525c

Please sign in to comment.