Skip to content

Commit

Permalink
fixed report trigger interval vs daily pre-fill for edit (opendistro-…
Browse files Browse the repository at this point in the history
  • Loading branch information
davidcui1225 authored and zhongnansu committed Jan 5, 2021
1 parent 3b6fcc7 commit cc054d3
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 cc054d3

Please sign in to comment.