mirror of
https://github.com/labring/FastGPT.git
synced 2025-10-20 18:54:09 +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]
|
cronField: [CronJobTypeEnum.interval, 24 / cronField.hour.length, 0]
|
||||||
};
|
};
|
||||||
}, [cronString]);
|
}, [cronString]);
|
||||||
const isOpenSchedule = cronConfig?.isOpen;
|
const isOpenSchedule = cronConfig?.isOpen ?? false;
|
||||||
const cronField = (cronConfig?.cronField || defaultValue) as CronFieldType;
|
const cronField = (cronConfig?.cronField || defaultValue) as CronFieldType;
|
||||||
|
|
||||||
const cronConfig2cronString = useCallback(
|
const cronConfig2cronString = useCallback(
|
||||||
|
Reference in New Issue
Block a user