Skip to content

Onboarding: Reports page errors #263

@rphovley

Description

@rphovley

When a new individual visits the reports page, but doesn't have data, the page errors

WeeklyLineGraph.tsx:24 Uncaught Error: Array is empty
at getMinMaxFromArray (WeeklyLineGraph.tsx:24:11)
at WeeklyLineGraph (WeeklyLineGraph.tsx:40:24)
at renderWithHooks (chunk-WMTG43VY.js?v=5d3a2026:11548:26)
at mountIndeterminateComponent (chunk-WMTG43VY.js?v=5d3a2026:14926:21)
at beginWork (chunk-WMTG43VY.js?v=5d3a2026:15914:22)
at HTMLUnknownElement.callCallback2 (chunk-WMTG43VY.js?v=5d3a2026:3674:22)
at Object.invokeGuardedCallbackDev (chunk-WMTG43VY.js?v=5d3a2026:3699:24)
at invokeGuardedCallback (chunk-WMTG43VY.js?v=5d3a2026:3733:39)
at beginWork$1 (chunk-WMTG43VY.js?v=5d3a2026:19765:15)
at performUnitOfWork (chunk-WMTG43VY.js?v=5d3a2026:19198:20)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions