Skip to content

Commit

Permalink
fixes highlighting of changed reminders in drawer
Browse files Browse the repository at this point in the history
  • Loading branch information
Dirk Peter committed Sep 2, 2024
1 parent f231df8 commit c9234dc
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -142,12 +142,13 @@ export class ReminderDrawerComponent implements OnDestroy {
}

private highlightChanges(): void {
if (!this._previousState.length) return;
if (!this.reminders.length) return;

// check if a reminder is new in a group
this.reminderGroups.forEach((group, index) => {
group.reminders.forEach((reminder) => {
if (!this._previousState[index].includes(reminder.id)) {
if (!this._previousState[index]?.includes(reminder.id)) {
console.log('highlight', reminder.id);
reminder.changed = true;
setTimeout(
() => delete reminder.changed,
Expand Down

0 comments on commit c9234dc

Please sign in to comment.