vc-create-dashboard 2.8.17 → 2.8.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3202,7 +3202,6 @@ class CreateDashboardComponent {
3202
3202
  this.datePickerOverlay = true;
3203
3203
  }
3204
3204
  closeFromDatePicker() {
3205
- console.log("dayjs(dashboard.selectedFromDate).format('YYYY-MM-DD') ==>", this.dashboardForm, new Date(this.dashboardForm?.selectedFromDate));
3206
3205
  if (!this.dashboardForm.selectedFromDate) {
3207
3206
  this.dashboardForm.selectedToDate = undefined;
3208
3207
  this.hideToDate = true;
@@ -3214,7 +3213,6 @@ class CreateDashboardComponent {
3214
3213
  return;
3215
3214
  }
3216
3215
  let minToDate = this.setToDate(this.dashboardForm.selectedFromDate);
3217
- console.log("dayjs(dashboard.selectedFromDate).format('YYYY-MM-DD') ==>1", minToDate);
3218
3216
  this.toDatePickerConfig = { min: minToDate };
3219
3217
  const fromDate = new Date(minToDate.split('-').reverse().join('-'));
3220
3218
  const toDate = new Date(this.dashboardForm.selectedToDate);
@@ -3699,8 +3697,6 @@ class CreateDashboardComponent {
3699
3697
  }
3700
3698
  this.vLoader = true;
3701
3699
  const dashboard = this.dashboardForm;
3702
- console.log("dayjs(dashboard.selectedFromDate).format('YYYY-MM-DD')", dashboard, new Date(dashboard?.selectedFromDate));
3703
- console.log("dayjs(dashboard.selectedFromDate).format('YYYY-MM-DD') 123", dayjs(dashboard?.selectedFromDate).format('YYYY-MM-DD'));
3704
3700
  const payload = {
3705
3701
  dashboard_name: dashboard.dashboardName,
3706
3702
  description: [
@@ -3716,8 +3712,8 @@ class CreateDashboardComponent {
3716
3712
  risk_category: this.returnIds(dashboard.selectedRiskCategories, 'category_id'),
3717
3713
  display_criteria: (dashboard.displayCriteria === 'and') ? 'BOTH_RC_AND_CATEGORY' : 'RC_OR_CATEGORY',
3718
3714
  timeframe: {
3719
- start_date: (dashboard.selectedFromDate) ? dayjs(new Date(dashboard?.selectedFromDate)).format('YYYY-MM-DD') : '',
3720
- end_date: (dashboard.selectedToDate) ? dayjs(new Date(dashboard?.selectedToDate)).format('YYYY-MM-DD') : '',
3715
+ start_date: (dashboard.selectedFromDate) ? this.getFromDate(dashboard?.selectedFromDate) : '',
3716
+ end_date: (dashboard.selectedToDate) ? this.setToDate(dashboard?.selectedToDate) : '',
3721
3717
  },
3722
3718
  email_summary: this.setFrequency('', 'export'),
3723
3719
  widget_details: dashboard.configureWidget