Fix typescript error

This commit is contained in:
HarelM
2023-12-21 09:24:59 +02:00
parent 66a0ee5d4e
commit 1a09de238a

View File

@@ -14,7 +14,7 @@ export default class InputSelect extends React.Component<InputSelectProps> {
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 <select