From 8ddec3e8a51f47d5e41d3116bb5dde306bf40fb5 Mon Sep 17 00:00:00 2001 From: Stepan Date: Sun, 21 May 2023 11:24:40 +0300 Subject: [PATCH] fix(reports): can't create alert/report with localization --- 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 dff549cf56f1c..076aac6d8bb68 100644 --- a/superset-frontend/src/features/alerts/AlertReportModal.tsx +++ b/superset-frontend/src/features/alerts/AlertReportModal.tsx @@ -594,7 +594,7 @@ const AlertReportModal: FunctionComponent = ({ 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