mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-02 05:20:37 +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;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!alertDef.condition?.target) {
|
if (alertDef.condition?.target !== 0 && !alertDef.condition?.target) {
|
||||||
notifications.error({
|
notifications.error({
|
||||||
message: 'Error',
|
message: 'Error',
|
||||||
description: t('target_missing'),
|
description: t('target_missing'),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user