mirror of
https://github.com/actualbudget/actual.git
synced 2026-03-11 12:43:09 -05:00
keep name after schedule completion or recreation (#1728)
This commit is contained in:
@@ -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
|
||||
|
||||
6
upcoming-release-notes/1728.md
Normal file
6
upcoming-release-notes/1728.md
Normal file
@@ -0,0 +1,6 @@
|
||||
---
|
||||
category: Bugfix
|
||||
authors: [shaankhosla]
|
||||
---
|
||||
|
||||
Keep schedule name after completion or recreation
|
||||
Reference in New Issue
Block a user