mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-23 13:03:50 +00:00
Fix Switch state inconsistency for Scheduled Trigger (#2221)
* 修复定时关闭时Switch显示不同步 * 优化写法
This commit is contained in:
@@ -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(
|
||||
|
Reference in New Issue
Block a user