Skip to content
Snippets Groups Projects
Unverified Commit 53dff76f authored by Ryan Laurie's avatar Ryan Laurie Committed by GitHub
Browse files

get table name from a non-expression column (#24439)

parent d3c960ea
No related branches found
No related tags found
No related merge requests found
......@@ -274,6 +274,10 @@ export default class Dimension {
);
}
isExpression(): boolean {
return isExpressionDimension(this);
}
foreign(dimension: Dimension): FieldDimension {
return null;
}
......
......@@ -36,7 +36,9 @@ export default class DimensionOptions {
}
sections({ extraItems = [] } = {}): DimensionOptionsSection[] {
const [dimension] = this.dimensions;
const dimension =
this.dimensions.find(dimension => !dimension.isExpression()) ??
this.dimensions[0];
const table = dimension && dimension.field().table;
const tableName = table ? table.objectName() : null;
const mainSection: DimensionOptionsSection = {
......
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