diff --git a/packages/loot-core/src/server/schedules/app.ts b/packages/loot-core/src/server/schedules/app.ts index a371d45983..7d3fcfbc71 100644 --- a/packages/loot-core/src/server/schedules/app.ts +++ b/packages/loot-core/src/server/schedules/app.ts @@ -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 diff --git a/upcoming-release-notes/1728.md b/upcoming-release-notes/1728.md new file mode 100644 index 0000000000..291b2290e7 --- /dev/null +++ b/upcoming-release-notes/1728.md @@ -0,0 +1,6 @@ +--- +category: Bugfix +authors: [shaankhosla] +--- + +Keep schedule name after completion or recreation \ No newline at end of file