mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
fix(Schedule Trigger Node): Default to 0 minute if falsy on hourly run (#9146)
This commit is contained in:
@@ -81,3 +81,13 @@ export function convertToUnixFormat(interval: IDataObject) {
|
||||
}
|
||||
interval.expression = expression.join(' ');
|
||||
}
|
||||
|
||||
export const addFallbackValue = <T>(enabled: boolean, fallback: T) => {
|
||||
if (enabled) {
|
||||
return (value: T) => {
|
||||
if (!value) return fallback;
|
||||
return value;
|
||||
};
|
||||
}
|
||||
return (value: T) => value;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user