ActivityWatch / activitywatch

The best free and open-source automated time tracker. Cross-platform, extensible, privacy-focused.
https://activitywatch.net/
Mozilla Public License 2.0
11.73k stars 533 forks source link

Uncaught TypeError on mouseout event #843

Closed Johannes29 closed 1 year ago

Johannes29 commented 1 year ago

Describe the bug

When the mouse leaves a "day" rect in this svg, image

this error is thrown in the devtools console:

periodusage.js:111 Uncaught TypeError: Cannot read properties of undefined (reading 'undefined')
    at SVGRectElement.<anonymous> (periodusage.js:111:19)
    at SVGRectElement.<anonymous> (on.js:3:14)

To Reproduce

  1. Open the dashboard via the tray icon
  2. Click on Activity in the top left corner
  3. Move the mouse over a "day" rect
  4. Move the mouse outside of the "day" rect
  5. Open devtools console
  6. See error

Expected behavior

When the mouse leaves a "day" rect, no error should be thrown and the color should return to normal.

github-actions[bot] commented 1 year ago

Hi there! As you're new to this repo, please make sure you've used an appropriate issue template and searched for duplicates (it helps us focus on actual development!). We'd also like to suggest that you read our contribution guidelines and our code of conduct. Thanks a bunch for opening your first issue! 🙏

BelKed commented 1 year ago

Duplicate of https://github.com/ActivityWatch/aw-webui/issues/393