Skip to content

Category Builder doesn't work "TypeError: c[f].events is undefined" #905

@douglasg14b

Description

@douglasg14b
  • I am on the latest ActivityWatch version.
  • I have searched the issues of this repo and believe that this is not a duplicate.
  • OS name and version: Windows 10
  • ActivityWatch version: v0.12.2

Describe the bug

Just installed and setup ActivityWatch and after a day of work went to setup categories. Category builder doesn't work, just shows loading perpetually. When it loads, the following error shows in console:

image

Which is thrown from here: https://github.com/ActivityWatch/aw-webui/blob/1f194ff6886d82ac5928e8cb944888d378c54157/src/views/settings/CategoryBuilder.vue#L227

To Reproduce

Unknown, happens every time

Expected behavior

It doesn't fail, and loads categories

Documentation

The date range selection appears to be borked? Inconsistent date offsets/not using UTS everywhere?

  1. Select 18th -> 20th (Today is the 19th) the network request responds with 810 items
  2. Select 18th -> 21st (2 days in the future) the network request returns 999 items
    • It also doesn't fail, and loads a bunch of categories

Additional context

Watchers:

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions