This is an automated email from the ASF dual-hosted git repository.
villebro pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/superset.git
The following commit(s) were added to refs/heads/master by this push:
new 09e399ae28 fix(reports): error when creation alert/report with
localization (#24159)
09e399ae28 is described below
commit 09e399ae28918220acde865ac29311d3abaa49af
Author: Stepan <[email protected]>
AuthorDate: Sun May 21 12:52:07 2023 +0300
fix(reports): error when creation alert/report with localization (#24159)
---
superset-frontend/src/features/alerts/AlertReportModal.tsx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/superset-frontend/src/features/alerts/AlertReportModal.tsx
b/superset-frontend/src/features/alerts/AlertReportModal.tsx
index dff549cf56..076aac6d8b 100644
--- a/superset-frontend/src/features/alerts/AlertReportModal.tsx
+++ b/superset-frontend/src/features/alerts/AlertReportModal.tsx
@@ -594,7 +594,7 @@ const AlertReportModal:
FunctionComponent<AlertReportModalProps> = ({
const shouldEnableForceScreenshot = contentType === 'chart' && !isReport;
const data: any = {
...currentAlert,
- type: isReport ? t('Report') : t('Alert'),
+ type: isReport ? 'Report' : 'Alert',
force_screenshot: shouldEnableForceScreenshot || forceScreenshot,
validator_type: conditionNotNull ? 'not null' : 'operator',
validator_config_json: conditionNotNull