Skip to content

Commit

Permalink
Use computed property to ensure the duration shown in the list upda…
Browse files Browse the repository at this point in the history
…tes properly when editing a worklog
  • Loading branch information
LSViana committed Oct 16, 2024
1 parent 7020f05 commit 57569cc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions components/applications/worklog-tracker/WlWorklogListItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,11 @@ const formattedDates = computed(() => ({
const classes = computed(() => ({
'bg-slate-100 dark:bg-slate-700': props.selected
}))
const duration = useWorklogDurationFormat(props.item.durationSeconds)
const durationSeconds = computed(() => props.item.durationSeconds)
const duration = useWorklogDurationFormat(durationSeconds)
const listeners = {
click (): void {
click(): void {
emit('click')
}
}
Expand Down

0 comments on commit 57569cc

Please sign in to comment.