From 5f9f0e6675fd5bed1d592808d1f1f6ea7fb5e8f0 Mon Sep 17 00:00:00 2001 From: Clemens Solar Date: Mon, 22 Jan 2024 19:17:15 +0100 Subject: [PATCH] fix: satisfy linter --- src/components/Customizer.tsx | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/src/components/Customizer.tsx b/src/components/Customizer.tsx index 8605acf..effd153 100644 --- a/src/components/Customizer.tsx +++ b/src/components/Customizer.tsx @@ -168,7 +168,7 @@ export default function Customizer({ parameters, onChange }: Props) { parameter.type === 'string[]' || parameter.type === 'boolean[]' ) { - let type = parameter.type.replace('[]', ''); + const type = parameter.type.replace('[]', ''); let validate; if (type === 'number') { @@ -183,15 +183,15 @@ export default function Customizer({ parameters, onChange }: Props) { fullWidth label={parameter.description || parameter.name} onChange={handleAutocompleteChange(parameter.name)} - renderChip={(Component, key, props) => { + renderChip={(Component, key, chipProps) => { // Rendering the label with a boolean would lead to errors, // hence the toString() call. return ( ); }} @@ -200,11 +200,9 @@ export default function Customizer({ parameters, onChange }: Props) { p: 1, }} validate={validate} - value={ - ( - parameter.value as string[] | number[] | boolean[] - ).map((x) => x.toString()) as any - } + value={( + parameter.value as string[] | number[] | boolean[] + ).map((x) => x.toString())} /> ); }