useTeamIdAsKey
This commit is contained in:
1 parent
e4183baf75
commit
71575a9d86
3 files changed
+15
-6
No files matched your search
@@ -32,12 +32,14 @@ export default function DiagnosticsAccessTab() {
|
||||
const { response: permsRes } = useGet<PermissionsResponse>(
|
||||
"/me/permissions",
|
||||
{},
|
||||
{ refreshInterval: config.GLOBAL_REFRESH }
|
||||
{ refreshInterval: config.GLOBAL_REFRESH },
|
||||
{ useTeamIdAsKey: true }
|
||||
);
|
||||
const { response: entsRes } = useGet<{ message: string; data: Entitlements }>(
|
||||
"/me/entitlements",
|
||||
{},
|
||||
{ refreshInterval: config.GLOBAL_REFRESH }
|
||||
{ refreshInterval: config.GLOBAL_REFRESH },
|
||||
{ useTeamIdAsKey: true }
|
||||
);
|
||||
|
||||
const orgPerms = permsRes?.data?.org || [];
|
||||
|
||||
@@ -4,7 +4,6 @@ import Divider from "@mui/material/Divider";
|
||||
import Box from "@mui/material/Box";
|
||||
import { useTheme } from "@mui/material/styles";
|
||||
import { useGet } from "@/hooks/UseApi";
|
||||
import { StatBox } from "@/components/design-elements";
|
||||
import { config as clientConfig } from "@/config";
|
||||
|
||||
type EnvConfig = {
|
||||
@@ -35,8 +34,6 @@ export default function DiagnosticsConfigTab() {
|
||||
|
||||
if (!data && !loading && !error) return null;
|
||||
|
||||
const totalKeys = data ? Object.keys(data).length : 0;
|
||||
|
||||
return (
|
||||
<Stack spacing={theme.spacing(8)}>
|
||||
{data && (
|
||||
|
||||
Reference in new issue
Block a user