232201_test_to_master #1582

Merged
alexm merged 126 commits from 232201_test_to_master into master 2023-06-01 06:16:49 +00:00
1 changed files with 1 additions and 3 deletions
Showing only changes of commit 3119ae4471 - Show all commits

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;