onejgordon / flow-dashboard

[UNMAINTAINED] A goal, task & habit tracker + personal dashboard to focus on what matters
http://flowdash.co
MIT License
1.66k stars 187 forks source link

Projects with disabled progress cannot be opened #133

Closed xverges closed 4 years ago

xverges commented 4 years ago

The browser console displays

TypeError: d.toFixed is not a functionProjectAnalysis.js:150:62
onejgordon commented 4 years ago

Thanks for the report @xverges Would it be possible to provide the project ID causing the issue? You can see this as the project_id parameter in the API call when you open the project detail. I suspect it's an edge case related to project timestamps, but not sure yet.

xverges commented 4 years ago

This was sent as a POST to https://flowdash.co/api/project (I think that when I enabled tracking again)

{
  "project": {
    "subhead": null,
    "complete": false,
    "progress_ts": [
      0,
      0,
      0,
      0,
      0,
      0,
      0,
      0,
      0,
      0
    ],
    "ts_archived": 1589705373514,
    "ts_created": 1583091978978,
    "id": 5745188240621568,
    "archived": false,
    "milestones": [],
    "title": "Dashboard to Python3",
    "due": null,
    "ts_completed": 1589705373514,
    "urls": [
      "https://github.com/xverges/flow-dashboard"
    ],
    "progress": 0,
    "starred": false
  },
  "message": null,
  "success": true
}
onejgordon commented 4 years ago

Thank you! I've reproduced, fix coming.