mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-07-31 13:52:00 +08:00
fix(frontend): 🐛 accept zero as valid alert threshold (#2703)
This commit is contained in:
parent
43c05c9605
commit
e21f23874d
@ -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'),
|
||||
|
Loading…
x
Reference in New Issue
Block a user