refs #5609 delete: console.log
gitea/salix/pipeline/head There was a failure building this commit Details

This commit is contained in:
Vicent Llopis 2023-05-23 15:12:20 +02:00
parent 0ab411ddc4
commit 3119ae4471
1 changed files with 1 additions and 3 deletions

View File

@ -19,10 +19,8 @@ export default class Ticket extends ModuleMain {
const hasFromParam = seachPanelParams.some(subarray => subarray.length > 0 && subarray[0] === 'from');
const hasToParam = seachPanelParams.some(subarray => subarray.length > 0 && subarray[0] === 'to');
if ((hasFromParam && !hasToParam) || (!hasFromParam && hasToParam)) {
if (!hasToParam) console.log($params);
if ((hasFromParam && !hasToParam) || (!hasFromParam && hasToParam))
throw new UserError(`Date range must have 'from' and 'to'`);
}
const hasExcludedParams = excludedParams.some(param => {
return $params && $params[param] != undefined;