Fixing Prometheus selector

Signed-off-by: alexfront <alex.andreev.email@gmail.com>
This commit is contained in:
alexfront committed 2020-08-06 13:05:25 +03:00
1 parent a69264e2cd
commit 80cd464021
1 file changed
+4 -2
@@ -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}
/> />
</> </>