Skip to content

Commit c28d246

Browse files
committed
fix: Timer triggered selector
1 parent ee0571b commit c28d246

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

ui/src/views/trigger/component/TriggerDrawer.vue

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -594,15 +594,18 @@ const times = Array.from({ length: 24 }, (_, i) => {
594594
return { label: time, value: time }
595595
})
596596
const days = Array.from({ length: 31 }, (_, i) => {
597-
const day = (i + 1).toString() + t('views.trigger.triggerCycle.days')
597+
i = i + 1
598+
const day = i.toString() + t('views.trigger.triggerCycle.days')
598599
return { label: day, value: i.toString(), children: times }
599600
})
600601
const hours = Array.from({ length: 24 }, (_, i) => {
601-
const time = (i + 1).toString().padStart(2, '0')
602+
i = i + 1
603+
const time = i.toString().padStart(2, '0')
602604
return { label: time, value: i }
603605
})
604606
const minutes = Array.from({ length: 60 }, (_, i) => {
605-
const time = (i + 1).toString().padStart(2, '0')
607+
i = i + 1
608+
const time = i.toString().padStart(2, '0')
606609
return { label: time, value: i }
607610
})
608611

0 commit comments

Comments
 (0)