Skip to content

Commit

Permalink
fix clear
Browse files Browse the repository at this point in the history
  • Loading branch information
hanzhi713 committed Jul 13, 2019
1 parent 3fdda19 commit 30b6ebe
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/store/schedule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -163,14 +163,13 @@ class ScheduleStore implements StoreModule<ScheduleState, ScheduleStateJSON> {
* clear the currently active schedules and generated schedules
*/
clear() {
this.currentSchedule.clean();
this.proposedSchedule.clean();
this.generated = false;
if (this.cpIndex === this.proposedScheduleIndex) {
this.cpIndex = -1;
window.scheduleEvaluator.clear();
this.numGenerated = 0;
}
this.switchSchedule(false);
saveStatus();
}

Expand Down

0 comments on commit 30b6ebe

Please sign in to comment.