Skip to content

Commit

Permalink
Fix [Schedule Job] when edit a schedule job by default the schedule c…
Browse files Browse the repository at this point in the history
…hange to every 10 minute `1.6.x` (#2462)
  • Loading branch information
mariana-furyk committed May 21, 2024
1 parent 4c0dfb9 commit bae5aa5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/components/SheduleWizard/scheduleWizard.util.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,10 @@ export const getDefaultSchedule = defaultCron => {
let cron = defaultCron.split(' ')
let scheduleData = { ...scheduleDataInitialState, defaultCron }

if (defaultCron) {
scheduleData.cron = defaultCron
}

if (cron[4] !== '*') {
const weekDays = ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']

Expand Down

0 comments on commit bae5aa5

Please sign in to comment.