fix(salesMonitor): allow scope days to zero
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Joan Sanchez 2021-11-16 13:43:30 +01:00
parent b7e58aa9cd
commit 2bc20242e6
2 changed files with 2 additions and 2 deletions

View File

@ -84,7 +84,7 @@ export default class Controller extends Section {
]; ];
const hasExcludedParams = excludedParams.some(param => { const hasExcludedParams = excludedParams.some(param => {
return $params && $params[param]; return $params && $params[param] != undefined;
}); });
const hasParams = Object.entries($params).length; const hasParams = Object.entries($params).length;
if (!hasParams || !hasExcludedParams) if (!hasParams || !hasExcludedParams)

View File

@ -14,7 +14,7 @@ export default class Ticket extends ModuleMain {
]; ];
const hasExcludedParams = excludedParams.some(param => { const hasExcludedParams = excludedParams.some(param => {
return $params && $params[param]; return $params && $params[param] != undefined;
}); });
const hasParams = Object.entries($params).length; const hasParams = Object.entries($params).length;
if (!hasParams || !hasExcludedParams) if (!hasParams || !hasExcludedParams)