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

JavaScript Error when clicking chart datapoints #1905

Open
nbanyan opened this issue May 21, 2024 · 0 comments
Open

JavaScript Error when clicking chart datapoints #1905

nbanyan opened this issue May 21, 2024 · 0 comments

Comments

@nbanyan
Copy link

nbanyan commented May 21, 2024

We're seeing a couple issues when clicking on chart datapoints in playbooks.

  • In bar_graph.tsx and line_graph.tsx the element[0] fed into props.onClick doesn't have an _index member, so undefined is passed instead of the number in index.
  • In the debugger these onClick drop directly into filterStarted or filterActive, but in both cases the argument they receive is undefined even if the onClick functions are modified to pass a real number into the onClick call.

image

Uncaught TypeError: Cannot read properties of undefined (reading '0')

    at Object.onClick (stats_view.tsx:82:63)
    at a1.onClick (bar_graph.tsx:106:31)
    at cG (helpers.segment.js:92:15)
    at a1._handleEvent (chart.esm.js:6117:9)
    at a1._eventHandler (chart.esm.js:6099:26)
    at r (chart.esm.js:5979:12)
    at a1.t (chart.esm.js:3216:7)
    at helpers.segment.js:28:12

Screenshot 2024-05-21 at 15 43 57

Screenshot 2024-05-21 at 16 07 22
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