From 2bc20242e633f77592a86c99ded816237c7f21f9 Mon Sep 17 00:00:00 2001 From: joan Date: Tue, 16 Nov 2021 13:43:30 +0100 Subject: [PATCH] fix(salesMonitor): allow scope days to zero --- modules/monitor/front/index/tickets/index.js | 2 +- modules/ticket/front/main/index.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/monitor/front/index/tickets/index.js b/modules/monitor/front/index/tickets/index.js index 54f996694..2614fd2dc 100644 --- a/modules/monitor/front/index/tickets/index.js +++ b/modules/monitor/front/index/tickets/index.js @@ -84,7 +84,7 @@ export default class Controller extends Section { ]; const hasExcludedParams = excludedParams.some(param => { - return $params && $params[param]; + return $params && $params[param] != undefined; }); const hasParams = Object.entries($params).length; if (!hasParams || !hasExcludedParams) diff --git a/modules/ticket/front/main/index.js b/modules/ticket/front/main/index.js index 3c6318b5d..35a955e55 100644 --- a/modules/ticket/front/main/index.js +++ b/modules/ticket/front/main/index.js @@ -14,7 +14,7 @@ export default class Ticket extends ModuleMain { ]; const hasExcludedParams = excludedParams.some(param => { - return $params && $params[param]; + return $params && $params[param] != undefined; }); const hasParams = Object.entries($params).length; if (!hasParams || !hasExcludedParams)