File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
src/components/CippComponents Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -22,9 +22,9 @@ import {
2222import { getCippLicenseTranslation } from "../../utils/get-cipp-license-translation" ;
2323import { useSettings } from "/src/hooks/use-settings.js" ;
2424import { usePermissions } from "../../hooks/use-permissions" ;
25- import { Stack , Grid , Tooltip , Box } from "@mui/material" ;
25+ import { Tooltip , Box } from "@mui/material" ;
2626import CippFormComponent from "./CippFormComponent" ;
27- import { useForm , useWatch } from "react-hook-form" ;
27+ import { useWatch } from "react-hook-form" ;
2828
2929// Separate component for Out of Office form to avoid hook issues
3030const OutOfOfficeForm = ( { formControl } ) => {
@@ -321,7 +321,10 @@ export const useCippUserActions = () => {
321321 validators : { required : "Please select a group" } ,
322322 api : {
323323 url : "/api/ListGroups" ,
324- labelField : "displayName" ,
324+ labelField : ( option ) =>
325+ option ?. calculatedGroupType
326+ ? `${ option . displayName } (${ option . calculatedGroupType } )`
327+ : option ?. displayName ?? "" ,
325328 valueField : "id" ,
326329 addedField : {
327330 groupType : "calculatedGroupType" ,
You can’t perform that action at this time.
0 commit comments