Skip to content

Commit 737b3d0

Browse files
frznvm0ErikBjare
authored andcommitted
fix: fix stopwatch off-by-one error
This fixes ActivityWatch/activitywatch#524.
1 parent 710098d commit 737b3d0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/views/Stopwatch.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ div
2020
div.col-md-12
2121
div(v-if="runningTimers.length > 0")
2222
h3 Running
23-
div(v-for="e in runningTimers")
23+
div(v-for="e in runningTimers" :key="e.id")
2424
stopwatch-entry(:event="e", :bucket_id="bucket_id", :now="now",
2525
@delete="removeTimer", @update="updateTimer")
2626
hr(style="margin: 0")
@@ -32,7 +32,7 @@ div
3232
h3.mt-4.mb-4 History
3333
div(v-for="k in Object.keys(timersByDate).sort().reverse()")
3434
h5.mt-2.mb-1 {{ k }}
35-
div(v-for="e in timersByDate[k]")
35+
div(v-for="e in timersByDate[k]" :key="e.id")
3636
stopwatch-entry(:event="e", :bucket_id="bucket_id", :now="now",
3737
@delete="removeTimer", @update="updateTimer", @new="startTimer(e.data.label)")
3838
hr(style="margin: 0")

0 commit comments

Comments
 (0)