Klaster1 / timer-5

A simple time-tracking tool

Home Page:https://klaster1.github.io/timer-5

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Removing a session removes the wrong session

Klaster1 opened this issue · comments

How to reproduce:

  1. Tave a task with two sessions.
  2. Remove the second session.

What happens:
The first session is removed.

Expected:
The second session in removed.

Notes to myself:
This probably happens because sessions are filtered and indexes might not match between raw and sorted datasets. Using [start, end] as a key might work.

This causes issues when editing a session too.