Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't edit newly created categories #427

Open
BelKed opened this issue Apr 16, 2023 · 0 comments
Open

Can't edit newly created categories #427

BelKed opened this issue Apr 16, 2023 · 0 comments

Comments

@BelKed
Copy link
Contributor

BelKed commented Apr 16, 2023

To reproduce:

  1. Remove all of your categories

  2. Add a new category by clicking on the Add category button

  3. Click on the Edit button (Screenshot 2023-04-16 at 19 18 50)

  4. Notice the errors:

Screenshot

  1. Try editing the Name or Regular Expression — doesn't work
  2. Save
  3. Click on the Edit button again (Screenshot 2023-04-16 at 19 18 50)
  4. Now you can edit the Name or Regular Expression

I assume this error occurs because the first category gets ID null:

Saved classes [{"name":["New class"],"rule":{"type":"regex","regex":"FILL ME"},"id":null}]

After editing and saving, it looks like this:

Saved classes [{"name":["New edited class"],"rule":{"type":"regex","regex":"FILL ME"},"id":0,"data":{}}]

  • OS: macOS Monterey 12.6.1
  • Browser: Firefox Developer Edition 113.0b3 (the same problem is probably reproducible in all browsers)
  • ActivityWatch: ActivityWatch v0.12.3b1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant