From e21f23874da4b390836f0fc9bb9ad72e3479b185 Mon Sep 17 00:00:00 2001 From: Prashant Shahi Date: Wed, 17 May 2023 09:17:14 +0530 Subject: [PATCH] =?UTF-8?q?fix(frontend):=20=F0=9F=90=9B=20accept=20zero?= =?UTF-8?q?=20as=20valid=20alert=20threshold=20(#2703)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/container/FormAlertRules/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/container/FormAlertRules/index.tsx b/frontend/src/container/FormAlertRules/index.tsx index 983760be1b..70ec5c2314 100644 --- a/frontend/src/container/FormAlertRules/index.tsx +++ b/frontend/src/container/FormAlertRules/index.tsx @@ -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'),