fixed group breadcrumbs
This commit is contained in:
parent
3835ea25c5
commit
7774558cac
1 changed files with 3 additions and 2 deletions
|
|
@ -373,7 +373,8 @@ export default function Devices() {
|
|||
}
|
||||
|
||||
const getGroup = () => {
|
||||
let group = groups[parseInt(tab)-1]
|
||||
let group = groups[parseInt(tab)]
|
||||
console.log(group)
|
||||
return group
|
||||
}
|
||||
|
||||
|
|
@ -457,7 +458,7 @@ export default function Devices() {
|
|||
<Tab value={"loading"} label={<Skeleton variant="rectangular" height={24} width={128} animation="pulse" />}/>
|
||||
: groups.map((group, index) => {
|
||||
if (group.id()) return (
|
||||
<Tab className={classes.tab} wrapped value={group.id().toString()} label={<Typography variant="inherit" noWrap>{group.name()}</Typography>} key={"group-tab-"+index}/>
|
||||
<Tab className={classes.tab} wrapped value={index} label={<Typography variant="inherit" noWrap>{group.name()}</Typography>} key={"group-tab-"+index}/>
|
||||
)
|
||||
})}
|
||||
<Tab wrapped value={"never"} label={<CreateGroupIcon className={classes.green} />} onClick={() => openGroupSettings(undefined, "add")} />
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue