fix null check for condition threshold to allow 0 values (#12295)

This commit is contained in:
Moriah Kreeger 2021-01-05 21:50:21 -08:00 committed by GitHub
parent d0668fa7e4
commit b01276808e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 2 deletions

View File

@ -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')}