From 3119ae4471d25bb4d497f3aeddd6f4ab11d53cae Mon Sep 17 00:00:00 2001 From: vicent Date: Tue, 23 May 2023 15:12:20 +0200 Subject: [PATCH] refs #5609 delete: console.log --- modules/ticket/front/main/index.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/modules/ticket/front/main/index.js b/modules/ticket/front/main/index.js index 6f7c152a4..c49418cfc 100644 --- a/modules/ticket/front/main/index.js +++ b/modules/ticket/front/main/index.js @@ -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;