Skip to content

Commit e3db86e

Browse files
authored
Fix task-overdue disappearing (#28)
1 parent 204fff9 commit e3db86e

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
66

77
## Unreleased
88

9+
## [1.2.2] - 2020-09-06
10+
11+
### 🐛 Bug Fixes
12+
13+
- Fixed an issue where the `task-overdue` status would disappear if a task above it was checked off.
14+
915
## [1.2.1] - 2020-09-06
1016

1117
### 🐛 Bug Fixes

src/api.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ export class Task {
103103
return this.datetime.isBefore();
104104
}
105105

106-
return this.datetime.add(1, 'day').isBefore();
106+
return this.datetime.clone().add(1, 'day').isBefore();
107107
}
108108

109109
compareTo(other: Task, sorting_options: string[]): number {

0 commit comments

Comments
 (0)