1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

fix type issue

Signed-off-by: Sebastian Malton <smalton@mirantis.com>
This commit is contained in:
Sebastian Malton 2020-06-12 11:14:28 -04:00
parent 749112acc7
commit 04127d77e9

View File

@ -31,7 +31,7 @@ export interface SelectProps<T = any> extends ReactSelectProps<T>, CreatableProp
menuClass?: string; menuClass?: string;
isCreatable?: boolean; isCreatable?: boolean;
autoConvertOptions?: boolean; // to internal format (i.e. {value: T, label: string}[]), not working with groups autoConvertOptions?: boolean; // to internal format (i.e. {value: T, label: string}[]), not working with groups
onChange?(option: T, meta?: ActionMeta<OptionTypeBase>): void; onChange?(option: T, meta?: ActionMeta): void;
} }
@observer @observer
@ -76,7 +76,7 @@ export class Select extends React.Component<SelectProps> {
} }
@autobind() @autobind()
onChange(value: SelectOption, meta: ActionMeta<OptionTypeBase>) { onChange(value: SelectOption, meta: ActionMeta) {
if (this.props.onChange) { if (this.props.onChange) {
this.props.onChange(value, meta); this.props.onChange(value, meta);
} }