fix(frontend): 🐛 accept zero as valid alert threshold (#2703)

This commit is contained in:
Prashant Shahi 2023-05-17 09:17:14 +05:30 committed by GitHub
parent 43c05c9605
commit e21f23874d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -229,7 +229,7 @@ function FormAlertRules({
return false;
}
if (!alertDef.condition?.target) {
if (alertDef.condition?.target !== 0 && !alertDef.condition?.target) {
notifications.error({
message: 'Error',
description: t('target_missing'),