Skip to content
Snippets Groups Projects
Commit 8544d0e2 authored by esikkala's avatar esikkala
Browse files

Use instancePageTabs

parent 9c9e63ba
No related branches found
No related tags found
No related merge requests found
...@@ -68,7 +68,7 @@ class InstanceHomePage extends React.Component { ...@@ -68,7 +68,7 @@ class InstanceHomePage extends React.Component {
const base = 'http://ldf.fi/mmm' const base = 'http://ldf.fi/mmm'
const locationArr = this.props.routeProps.location.pathname.split('/') const locationArr = this.props.routeProps.location.pathname.split('/')
let localID = locationArr.pop() let localID = locationArr.pop()
perspectiveConfig.tabs.map(tab => { perspectiveConfig.instancePageTabs.map(tab => {
if (localID === tab.id) { if (localID === tab.id) {
localID = locationArr.pop() // pop again if tab id localID = locationArr.pop() // pop again if tab id
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment