mirror of
https://github.com/maputnik/editor.git
synced 2026-02-06 04:30:01 +00:00
Fix typescript error
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user