diff --git a/apps/console/src/components/form/PeopleSelectField.tsx b/apps/console/src/components/form/PeopleSelectField.tsx index 3a6f96b1e..28bd79f0a 100644 --- a/apps/console/src/components/form/PeopleSelectField.tsx +++ b/apps/console/src/components/form/PeopleSelectField.tsx @@ -36,7 +36,10 @@ export function PeopleSelectField({ } function PeopleSelectWithQuery( - props: Pick + props: Pick< + Props, + "organizationId" | "control" | "name" | "disabled" | "optional" + >, ) { const { __ } = useTranslate(); const { name, organizationId, control } = props; @@ -53,15 +56,15 @@ function PeopleSelectWithQuery( id={name} variant="editor" placeholder={__("Select an owner")} - onValueChange={(value) => field.onChange(value === "__NONE__" ? null : value)} + onValueChange={(value) => + field.onChange(value === "__NONE__" ? null : value) + } key={people?.length.toString() ?? "0"} {...field} className="w-full" value={field.value ?? (props.optional ? "__NONE__" : "")} > - {props.optional && ( - - )} + {props.optional && } {people?.map((p) => (