Skip to content

Commit

Permalink
fix null check for condition threshold to allow 0 values
Browse files Browse the repository at this point in the history
  • Loading branch information
riahk committed Jan 5, 2021
1 parent 4149ab4 commit 0d77b28
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions superset-frontend/src/views/CRUD/alert/AlertReportModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1201,8 +1201,11 @@ const AlertReportModal: FunctionComponent<AlertReportModalProps> = ({
name="threshold"
disabled={conditionNotNull}
value={
currentAlert && currentAlert.validator_config_json
? currentAlert.validator_config_json.threshold || ''
currentAlert &&
currentAlert.validator_config_json &&
currentAlert.validator_config_json.threshold !==
undefined
? currentAlert.validator_config_json.threshold
: ''
}
placeholder={t('Value')}
Expand Down

0 comments on commit 0d77b28

Please sign in to comment.