Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: auto create empty schedule when deleted all schedules #552

Open
wants to merge 16 commits into
base: main
Choose a base branch
from

Conversation

EthanL06
Copy link
Member

@EthanL06 EthanL06 commented Mar 9, 2025

#520

In this PR, when all schedules are deleted, a new schedule is automatically created and selected.


This change is Reviewable

Comment on lines +137 to +140
// By default, there is always one schedule in schedules array. Create a new schedule if there are no schedules left.
if (schedules.length <= 1) {
createSchedule('New Schedule');
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we move this logic into deleteSchedule itself?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants