Skip to content
Snippets Groups Projects
Unverified Commit 3c4f62bd authored by Shaan Khosla's avatar Shaan Khosla Committed by GitHub
Browse files

keep name after schedule completion or recreation (#1728)

parent abd2d424
No related branches found
No related tags found
No related merge requests found
......@@ -274,15 +274,6 @@ export async function updateSchedule({
if (schedule.rule) {
throw new Error('You cannot change the rule of a schedule');
}
if (schedule.name) {
if (await checkIfScheduleExists(schedule.name, schedule.id)) {
throw new Error('There is already a schedule with this name');
}
} else {
schedule.name = null;
}
// We need the rule if there are conditions
let rule;
// This must be outside the `batchMessages` call because we change
......
---
category: Bugfix
authors: [shaankhosla]
---
Keep schedule name after completion or recreation
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment