From 4bf2cc9d7978dd5dfb5815545726adca8788b3cc Mon Sep 17 00:00:00 2001 From: Andrew Baldwin Date: Mon, 26 Aug 2024 10:47:40 -0400 Subject: [PATCH] Correct types for form select --- locust/webui/src/components/Form/Select.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/locust/webui/src/components/Form/Select.tsx b/locust/webui/src/components/Form/Select.tsx index 8a35a17c93..ff8bdfbaab 100644 --- a/locust/webui/src/components/Form/Select.tsx +++ b/locust/webui/src/components/Form/Select.tsx @@ -1,14 +1,13 @@ import { SxProps, FormControl, InputLabel, Select as MuiSelect, SelectProps } from '@mui/material'; -interface ISelect extends SelectProps { +type ISelect = SelectProps & { label: string; name: string; options: string[]; multiple?: boolean; defaultValue?: string | string[]; sx?: SxProps; - onChange?: SelectProps['onChange']; -} +}; export default function Select({ label,