Skip to content

Commit

Permalink
Merge pull request #128 from frostime/dev
Browse files Browse the repository at this point in the history
fix: doPurge 的bug
  • Loading branch information
frostime authored Jun 17, 2023
2 parents 0374e4d + 9ef344d commit c6c360f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/global-status.ts
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ class ReservationManger {
if (key < date_str) {
delete this.reservations.OnDate[key];
}
if (this.reservations.OnDate[key].length == 0) {
if (this.reservations.OnDate[key]?.length === 0) {
delete this.reservations.OnDate[key];
}
}
Expand Down

0 comments on commit c6c360f

Please sign in to comment.