232201_test_to_master #1582
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue