Skip to content

Commit

Permalink
fix(reports): can't create alert/report with localization
Browse files Browse the repository at this point in the history
  • Loading branch information
Always-prog committed May 21, 2023
1 parent 1583090 commit 8ddec3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion superset-frontend/src/features/alerts/AlertReportModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8ddec3e

Please sign in to comment.