fix(explore): Disable saved metric name edit in Metric popover (#12582)

This commit is contained in:
Kamil Gabryjelski
2021-01-19 21:28:55 +01:00
committed by GitHub
parent 862ddd9cb4
commit 853d34beba
8 changed files with 99 additions and 43 deletions

View File

@@ -62,7 +62,7 @@ export default function MetricDefinitionValue({
if (option instanceof AdhocMetric || savedMetric) {
const adhocMetric =
option instanceof AdhocMetric ? option : new AdhocMetric({});
option instanceof AdhocMetric ? option : new AdhocMetric({ isNew: true });
const metricOptionProps = {
onMetricEdit,