소스 검색

fix: always show system groups checkbox on Groups page

Fszontagh 6 달 전
부모
커밋
13a6947c22
1개의 변경된 파일9개의 추가작업 그리고 14개의 파일을 삭제
  1. 9 14
      webui/src/pages/Groups.tsx

+ 9 - 14
webui/src/pages/Groups.tsx

@@ -254,9 +254,6 @@ function Groups() {
     return parent?.name || null
   }
 
-  // Check if any system groups exist
-  const hasSystemGroups = groups.some((g) => g.is_system)
-
   if (!currentWorkspace) {
     return (
       <div className="space-y-6">
@@ -296,17 +293,15 @@ function Groups() {
             onChange={(e) => setSearchQuery(e.target.value)}
           />
         </div>
-        {hasSystemGroups && (
-          <label className="inline-flex items-center gap-2 text-sm text-gray-600">
-            <input
-              type="checkbox"
-              checked={showSystemGroups}
-              onChange={(e) => setShowSystemGroups(e.target.checked)}
-              className="h-4 w-4 rounded border-gray-300 text-indigo-600 focus:ring-indigo-500"
-            />
-            Show system groups
-          </label>
-        )}
+        <label className="inline-flex items-center gap-2 text-sm text-gray-600">
+          <input
+            type="checkbox"
+            checked={showSystemGroups}
+            onChange={(e) => setShowSystemGroups(e.target.checked)}
+            className="h-4 w-4 rounded border-gray-300 text-indigo-600 focus:ring-indigo-500"
+          />
+          Show system groups
+        </label>
       </div>
 
       {/* Error state */}