File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed
site/src/pages/OrganizationSettingsPage/IdpSyncPage Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ import {
12
12
HelpTooltipTitle ,
13
13
HelpTooltipTrigger ,
14
14
} from "components/HelpTooltip/HelpTooltip" ;
15
+ import { isEveryoneGroup } from "utils/groups" ;
15
16
import { Input } from "components/Input/Input" ;
16
17
import { Label } from "components/Label/Label" ;
17
18
import { Link } from "components/Link/Link" ;
@@ -259,15 +260,17 @@ export const IdpGroupSyncForm: FC<IdpGroupSyncFormProps> = ({
259
260
className = "min-w-60 max-w-3xl"
260
261
value = { coderGroups }
261
262
onChange = { setCoderGroups }
262
- options = { groups . map ( ( group ) => ( {
263
- label : group . display_name || group . name ,
264
- value : group . id ,
265
- } ) ) }
263
+ options = { groups
264
+ . filter ( ( group ) => ! isEveryoneGroup ( group ) )
265
+ . map ( ( group ) => ( {
266
+ label : group . display_name || group . name ,
267
+ value : group . id ,
268
+ } ) ) }
266
269
hidePlaceholderWhenSelected
267
270
placeholder = "Select group"
268
271
emptyIndicator = {
269
272
< p className = "text-center text-md text-content-primary" >
270
- All groups selected
273
+ No more groups to select
271
274
</ p >
272
275
}
273
276
/>
You can’t perform that action at this time.
0 commit comments