From 1a09de238a8bfec16eef34d4c5763b1ba2638dec Mon Sep 17 00:00:00 2001 From: HarelM Date: Thu, 21 Dec 2023 09:24:59 +0200 Subject: [PATCH] Fix typescript error --- src/components/InputSelect.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/InputSelect.tsx b/src/components/InputSelect.tsx index 2259daf2..e4b70930 100644 --- a/src/components/InputSelect.tsx +++ b/src/components/InputSelect.tsx @@ -14,7 +14,7 @@ export default class InputSelect extends React.Component { render() { let options = this.props.options; if(options.length > 0 && !Array.isArray(options[0])) { - options = options.map((v) => [v as string, v as any]) + options = options.map((v) => [v, v]) as [string, any][]; } return