mirror of https://github.com/apache/superset.git
fix null check for condition threshold to allow 0 values (#12295)
This commit is contained in:
parent
d0668fa7e4
commit
b01276808e
|
@ -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')}
|
||||
|
|
Loading…
Reference in New Issue