PostHog / posthog

🦔 PostHog provides open-source product analytics, session recording, feature flagging and A/B testing that you can self-host.
https://posthog.com
Other
21.62k stars 1.29k forks source link

Dashboard not rendering funnel #3574

Closed kpthatsme closed 3 years ago

kpthatsme commented 3 years ago

Bug description

This dashboard fails to render the step funnel in the top left, showing an error message.

Clicking into the funnel it works and loads properly.

Attempting to re-add to the dashboard occasionally works, but ends up making the other funnel (trend) chart not render.

Screen Shot 2021-03-03 at 6 19 58 PM

I think this has to do with showing multiple types of funnels on a single dashboard i.e. trends vs. steps.

It looks like either the trends or the steps funnels will successfully render but not both.

Expected behavior

How to reproduce

  1. Visit the dashboard, 'Core Funnel' isn't rendered
  2. Click into the funnel and it should render fine on the insights view

I think this might be something with showing a mixture of funnels with trends and steps? It seems like either one of those will load i.e. all the step funnels render properly or all the trend ones, but never both.

Environment

Additional context

I did see this in my JS console:


In order to be iterable, non-array objects must have a [Symbol.iterator]() method.
    at e.exports (nonIterableSpread.js:2)
    at e.exports (toConsumableArray.js:10)
    at LineGraph.js:145
    at Array.map (<anonymous>)
    at LineGraph.js:143
    at LineGraph.js:65
    at ac (react-dom.production.min.js:211)
    at ms (react-dom.production.min.js:257)
    at t.unstable_runWithPriority (scheduler.production.min.js:19)
    at Ia (react-dom.production.min.js:122)
    at vs (react-dom.production.min.js:257)
    at Zc (react-dom.production.min.js:239)
    at react-dom.production.min.js:123
    at t.unstable_runWithPriority (scheduler.production.min.js:19)
    at Ia (react-dom.production.min.js:122)
    at qa (react-dom.production.min.js:123)
    at Wa (react-dom.production.min.js:122)
    at $c (react-dom.production.min.js:230)
    at Object.enqueueSetState (react-dom.production.min.js:132)
    at s._.setState (react.production.min.js:12)
    at WidthProvider.js:99
    at r (helpers.js:72)
    at q (utils.tsx:268)
    at r (helpers.js:72)```

####  *Thank you* for your bug report – we love squashing them!
kpthatsme commented 3 years ago

Fixed in https://github.com/PostHog/posthog/pull/3641