Skip to content
Snippets Groups Projects
Commit 0e1e80ca authored by Atte Keinänen's avatar Atte Keinänen Committed by GitHub
Browse files

Merge pull request #5546 from metabase/fix-2811

Allow mixing cards broken out by DateTime and numeric timestamps
parents ac8615a2 fa883313
No related branches found
No related tags found
No related merge requests found
......@@ -96,7 +96,9 @@ export default class LineAreaBarChart extends Component {
}
// both or neither primary dimension must be numeric
if (isNumeric(initialDimensions[0]) !== isNumeric(newDimensions[0])) {
// a timestamp field is both date and number so don't enforce the condition if both fields are dates; see #2811
if ((isNumeric(initialDimensions[0]) !== isNumeric(newDimensions[0])) &&
!(isDate(initialDimensions[0]) && isDate(newDimensions[0]))) {
return false;
}
......
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment