flipped the keys/types added to the context on the devices page to have the group after the team

This commit is contained in:
csawatzky 2025-03-05 14:39:45 -06:00
parent 7774558cac
commit 871cbf424e
2 changed files with 5 additions and 4 deletions

View file

@ -148,7 +148,8 @@ export default function Devices() {
const getKeys = () => {
if (tab !== "all") {
let keys = getContextKeys()
keys.splice(keys.length - 1, 0, tab);
//keys.splice(keys.length - 1, 0, getGroup().id().toString());
keys.push(getGroup().id().toString());
return keys
} else {
return getContextKeys()
@ -158,7 +159,8 @@ export default function Devices() {
const getTypes = () => {
if (tab !== "all") {
let types = getContextTypes()
types.splice(types.length - 1, 0, "group");
//types.splice(types.length - 1, 0, "group");
types.push("group");
return types
} else {
return getContextTypes()
@ -374,7 +376,6 @@ export default function Devices() {
const getGroup = () => {
let group = groups[parseInt(tab)]
console.log(group)
return group
}