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

BreakoutWidget sometimes breaks when clicking date/time field without picking a granularity #2304

Closed
tlrobinson opened this issue Apr 4, 2016 · 0 comments · Fixed by #2364
Labels
Type:Bug Product defects
Milestone

Comments

@tlrobinson
Copy link
Contributor

tlrobinson commented Apr 4, 2016

I'm not exactly sure what conditions trigger this, but on certain tables if you click a date/time field in the breakout widget you can get error message like this:

invariant.js?568c:39 Uncaught Invariant Violation: BreakoutWidget.render(): A valid ReactComponent must be returned. You may have returned undefined, an array or some other invalid object.

However, if you click the right side so you drill into the date/time granularity picker and pick "day", "week", etc it works fine.

This appears to be due to the lack of an "else" statement here: https://github.com/metabase/metabase/blob/master/frontend/src/query_builder/BreakoutWidget.jsx#L94

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type:Bug Product defects
Projects
None yet
2 participants