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

Fixing Prometheus selector

Signed-off-by: alexfront <alex.andreev.email@gmail.com>
This commit is contained in:
alexfront 2020-08-06 13:05:25 +03:00
parent a69264e2cd
commit 80cd464021

View File

@ -26,8 +26,10 @@ export class ClusterPrometheusSetting extends React.Component<Props> {
for possible configuration changes. for possible configuration changes.
</p> </p>
<Select <Select
value={this.props.cluster.preferences.prometheusProvider?.type} value={this.props.cluster.preferences.prometheusProvider?.type || ""}
onChange={({type}) => this.props.cluster.preferences.prometheusProvider = { type }} onChange={({value}) => {
this.props.cluster.preferences.prometheusProvider.type = value
}}
options={options} options={options}
/> />
</> </>