A local-first personal finance app
keep name after schedule completion or recreation (#1728)
Shaan Khosla3c4f62bd5111
diff --git a/packages/loot-core/src/server/schedules/app.ts b/packages/loot-core/src/server/schedules/app.tsindex 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 conditionslet rule;// This must be outside the `batchMessages` call because we changediff --git a/upcoming-release-notes/1728.md b/upcoming-release-notes/1728.mdnew file mode 100644index 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