diff --git a/src/components/inputs/reactHookForm/DirectoryItemsInput.tsx b/src/components/inputs/reactHookForm/DirectoryItemsInput.tsx index 8054678f..1b6f45e8 100644 --- a/src/components/inputs/reactHookForm/DirectoryItemsInput.tsx +++ b/src/components/inputs/reactHookForm/DirectoryItemsInput.tsx @@ -67,6 +67,7 @@ export interface DirectoryItemsInputProps { onChange?: (e: any) => void; disable?: boolean; labelRequiredFromContext?: boolean; + itemSelectorKey?: string; } export function DirectoryItemsInput({ @@ -81,6 +82,7 @@ export function DirectoryItemsInput({ onChange, disable = false, labelRequiredFromContext = true, + itemSelectorKey = 'defaultKey', }: DirectoryItemsInputProps) { const { snackError } = useSnackMessage(); const intl = useIntl(); @@ -221,6 +223,7 @@ export function DirectoryItemsInput({ {!hideErrorMessage && }