Browse Source

fix(dashboards): metric tag label (#60880)

Ogi 1 year ago
parent
commit
aef7dfe4e1
1 changed files with 4 additions and 1 deletions
  1. 4 1
      static/app/views/discover/table/queryField.tsx

+ 4 - 1
static/app/views/discover/table/queryField.tsx

@@ -593,8 +593,11 @@ class QueryField extends Component<Props> {
         tagType = 'success';
         break;
       case FieldValueKind.FIELD:
+        text = DEPRECATED_FIELDS.includes(label) ? 'deprecated' : 'field';
+        tagType = 'highlight';
+        break;
       case FieldValueKind.METRICS:
-        text = DEPRECATED_FIELDS.includes(label) ? 'deprecated' : 'metric';
+        text = 'metric';
         tagType = 'highlight';
         break;
       default: