Skip to content

Commit

Permalink
tab highlighting fix
Browse files Browse the repository at this point in the history
  • Loading branch information
danenania committed Nov 5, 2017
1 parent 0b136c1 commit b6c838e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion envkey-react/src/components/shared/selected_tabs.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const config = {

const SelectedTabs = ({tabs, path, selectedTab, permissions, objectPermissions})=>{
const renderTab = ([action, label, imgW, imgH, {permissionPath, objectPermissionPath}={}], i)=>{
const selected = action == selectedTab,
const selected = selectedTab.indexOf(action) == 0,
className = [("tab-" + action), (selected ? "selected" : "")].join(" "),
hasPermission =
!((permissionPath && (!permissions || !R.path(permissionPath, permissions))) ||
Expand Down

0 comments on commit b6c838e

Please sign in to comment.