NaokiHigashi28 пре 1 година
родитељ
комит
7b55610c0b
1 измењених фајлова са 2 додато и 4 уклоњено
  1. 2 4
      apps/app/src/client/components/Me/AccessTokenScopeList.tsx

+ 2 - 4
apps/app/src/client/components/Me/AccessTokenScopeList.tsx

@@ -28,7 +28,7 @@ export const AccessTokenScopeList: React.FC<AccessTokenScopeListProps> = ({
   scopeObject,
   scopeObject,
   register,
   register,
   disabledScopes,
   disabledScopes,
-  level = 0,
+  level = 1,
 }) => {
 }) => {
 
 
   const { data: isDeviceLargerThanMd } = useIsDeviceLargerThanMd();
   const { data: isDeviceLargerThanMd } = useIsDeviceLargerThanMd();
@@ -39,9 +39,7 @@ export const AccessTokenScopeList: React.FC<AccessTokenScopeListProps> = ({
   return (
   return (
     <>
     <>
       {entries.map(([scopeKey, scopeValue], idx) => {
       {entries.map(([scopeKey, scopeValue], idx) => {
-        // Get indentation class based on level
-        // Example: Insert <hr> only for levels 0 or 1, except for the first item
-        const showHr = (level === 0 || level === 1) && idx !== 0;
+        const showHr = (level === 1 || level === 2) && idx !== 0;
 
 
         if (typeof scopeValue === 'object') {
         if (typeof scopeValue === 'object') {
           return (
           return (