|
|
@@ -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 */}
|