mirror of
https://github.com/maputnik/editor.git
synced 2025-12-28 00:50:00 +00:00
Migration of jsx files to tsx 3 (#851)
This is in continue to: - #850 - #848 The last files should be converted as part of this PR, there are only a handful left.
This commit is contained in:
@@ -14,7 +14,7 @@ type ExpressionPropertyProps = {
|
||||
fieldType?: string
|
||||
fieldSpec?: object
|
||||
value?: any
|
||||
errors?: {[key: string]: any}
|
||||
errors?: {[key: string]: {message: string}}
|
||||
onChange?(...args: unknown[]): unknown
|
||||
onUndo?(...args: unknown[]): unknown
|
||||
canUndo?(...args: unknown[]): unknown
|
||||
@@ -109,7 +109,8 @@ export default class ExpressionProperty extends React.Component<ExpressionProper
|
||||
}
|
||||
|
||||
return <Block
|
||||
error={foundErrors}
|
||||
// this feels like an incorrect type...? `foundErrors` is an array of objects, not a single object
|
||||
error={foundErrors as any}
|
||||
fieldSpec={this.props.fieldSpec}
|
||||
label={labelFromFieldName(this.props.fieldName)}
|
||||
action={deleteStopBtn}
|
||||
|
||||
Reference in New Issue
Block a user