diff --git a/src/Components/Form/FormFields/SelectFormField.tsx b/src/Components/Form/FormFields/SelectFormField.tsx index 75c9c5741f9..9607e26bbdf 100644 --- a/src/Components/Form/FormFields/SelectFormField.tsx +++ b/src/Components/Form/FormFields/SelectFormField.tsx @@ -46,7 +46,7 @@ export const SelectFormField = (props: SelectFormFieldProps) => { type MultiSelectFormFieldProps = FormFieldBaseProps & { placeholder?: React.ReactNode; - options: T[]; + options: readonly T[]; optionLabel: OptionCallback; optionSelectedLabel?: OptionCallback; optionDescription?: OptionCallback; diff --git a/src/Components/Form/MultiSelectMenuV2.tsx b/src/Components/Form/MultiSelectMenuV2.tsx index d3a46cdb1f9..2cf47584dda 100644 --- a/src/Components/Form/MultiSelectMenuV2.tsx +++ b/src/Components/Form/MultiSelectMenuV2.tsx @@ -14,7 +14,7 @@ type OptionCallback = (option: T) => R; type Props = { id?: string; - options: T[]; + options: readonly T[]; value: V[] | undefined; placeholder?: ReactNode; optionLabel: OptionCallback;