mirror of
https://github.com/maputnik/editor.git
synced 2026-07-25 23:37:27 +00:00
Fix typescript error
This commit is contained in:
@@ -14,7 +14,7 @@ export default class InputSelect extends React.Component<InputSelectProps> {
|
|||||||
render() {
|
render() {
|
||||||
let options = this.props.options;
|
let options = this.props.options;
|
||||||
if(options.length > 0 && !Array.isArray(options[0])) {
|
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
|
return <select
|
||||||
|
|||||||
Reference in New Issue
Block a user