Skip to content

Commit 4238637

Browse files
committed
Errbit | fixing scope header for concept
1 parent b019378 commit 4238637

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/components/concepts/ScopeHeader.jsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ const ScopeHeader = ({
6767
})
6868
}
6969

70-
const resourceURL = ((get(concept, 'versioned_object_id') || '').toString() === concept.uuid || concept.is_latest_version) ? concept.url : concept.version_url
70+
const resourceURL = (concept?.versioned_object_id?.toString() === concept?.uuid || concept?.is_latest_version) ? concept?.url : concept?.version_url
7171
return (
7272
<header className='resource-header home-header col-xs-12' style={{paddingTop: '5px', paddingBottom: 0, position: 'fixed', zIndex: 2, paddingLeft: '5px'}}>
7373
<div className='col-md-12 no-side-padding container' style={{lineHeight: 'normal'}}>

0 commit comments

Comments
 (0)