Skip to content

Stats (Monitor) page in client-admin crashes to javascript error on edge-branch #2005

@markkusofokus

Description

@markkusofokus

Expected behavior:
Render stats and show Victory chart

Actual behavior:
White page, browser console shows error about usage of reduce() function, apparently VictoryChart related, specifically on VictoryArea.

To Reproduce:

  • Use edge branch
  • Run with docker compose --profile postgres -f docker-compose.yml -f docker-compose.dev.yml up
  • Create a converstation, go and answer a few times in ingognito window
  • As conversation admin, navigate to conversations stats-page (Monitor)

Screenshots:
Console logs in screenshot are just my debugs to see what's passed to Victory
Image

Device information:
Mac OSX Chrome

Additional context:
If I removed the VictoryArea from /client-admin/src/components/converstation-admin/stats/voters.js the page loads but obviously no graph is shown in the VictoryChart
Tried installing older versions of Victory but did not fix the issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions