Просмотр исходного кода

Revert "ref(js): Small template usage improvement" (#44604)

Scott Cooper 2 лет назад
Родитель
Сommit
aff0ca633d
1 измененных файлов с 3 добавлено и 5 удалено
  1. 3 5
      static/app/views/alerts/rules/metric/details/metricChart.tsx

+ 3 - 5
static/app/views/alerts/rules/metric/details/metricChart.tsx

@@ -33,7 +33,7 @@ import {Panel, PanelBody} from 'sentry/components/panels';
 import Placeholder from 'sentry/components/placeholder';
 import Truncate from 'sentry/components/truncate';
 import {IconCheckmark, IconFire, IconWarning} from 'sentry/icons';
-import {t, tct} from 'sentry/locale';
+import {t} from 'sentry/locale';
 import ConfigStore from 'sentry/stores/configStore';
 import {space} from 'sentry/styles/space';
 import {DateString, Organization, Project} from 'sentry/types';
@@ -302,10 +302,8 @@ class MetricChart extends PureComponent<Props, State> {
       ...getRuleChangeSeries(rule, timeseriesData),
     ];
 
-    const queryFilter = tct('[filters] over [duration]', {
-      filters: filter?.join(' '),
-      duration: getDuration(rule.timeWindow * 60),
-    });
+    const queryFilter =
+      filter?.join(' ') + t(' over ') + getDuration(rule.timeWindow * 60);
 
     const percentOfWidth =
       width >= 1151