Skip to content
This repository has been archived by the owner on Aug 9, 2022. It is now read-only.

Commit

Permalink
fixed report trigger interval vs daily pre-fill for edit (#280)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidcui1225 authored Dec 29, 2020
1 parent e40398b commit 756f64b
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -609,7 +609,8 @@ export function ReportTrigger(props: ReportTriggerProps) {

const defaultEditScheduleFrequency = (trigger_params) => {
if (trigger_params.schedule_type === SCHEDULE_TYPE_OPTIONS[0].id) {
if (trigger_params.schedule.interval.unit === 'DAYS') {
if (trigger_params.schedule.interval.unit === 'Days' &&
trigger_params.schedule.interval.period === 1) {
setScheduleRecurringFrequency('daily');
} else {
setScheduleRecurringFrequency('byInterval');
Expand Down

0 comments on commit 756f64b

Please sign in to comment.