Skip to content

Commit

Permalink
Fix Switch state inconsistency for Scheduled Trigger (labring#2221)
Browse files Browse the repository at this point in the history
* 修复定时关闭时Switch显示不同步

* 优化写法
  • Loading branch information
torqueJY32 authored Jul 31, 2024
1 parent 446d9cb commit 41da52d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ const ScheduledTriggerConfig = ({
cronField: [CronJobTypeEnum.interval, 24 / cronField.hour.length, 0]
};
}, [cronString]);
const isOpenSchedule = cronConfig?.isOpen;
const isOpenSchedule = cronConfig?.isOpen ?? false;
const cronField = (cronConfig?.cronField || defaultValue) as CronFieldType;

const cronConfig2cronString = useCallback(
Expand Down

0 comments on commit 41da52d

Please sign in to comment.