mirror of
https://github.com/actualbudget/actual.git
synced 2026-04-30 10:14:53 -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) {
|
if (schedule.rule) {
|
||||||
throw new Error('You cannot change the rule of a schedule');
|
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;
|
let rule;
|
||||||
|
|
||||||
// This must be outside the `batchMessages` call because we change
|
// 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