Skip to content
Snippets Groups Projects
Commit f601f74c authored by Allen Gilliland's avatar Allen Gilliland
Browse files

Merge pull request #1118 from metabase/expand_dimension_fields

allow breakouts to include PK, FK, and Entity Name type fields.
parents bc7214c3 af00b019
Branches
Tags
No related merge requests found
......@@ -43,7 +43,7 @@ export function isCategory(field) {
}
export function isDimension(field) {
return isDate(field) || isCategory(field) || isInTypes(field.field_type, ['dimension']);
return isDate(field) || isCategory(field) || isInTypes(field.field_type, ['dimension']) || isInTypes(field.special_type, ['fk', 'id', 'name']);
}
// will return a string with possible values of 'date', 'number', 'bool', 'string'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment