Skip to content
Snippets Groups Projects
Unverified Commit d1047a0e authored by Gustavo Saiani's avatar Gustavo Saiani Committed by GitHub
Browse files

Simplify setting of const (#24107)

parent 51d7b5cd
No related branches found
No related tags found
No related merge requests found
......@@ -1272,12 +1272,10 @@ class StructuredQueryInner extends AtomicQuery {
const table = this.table();
if (table) {
const dimensionIsFKReference = dimension =>
dimension.field && dimension.field() && dimension.field().isFK();
const dimensionIsFKReference = dimension => dimension.field?.().isFK();
const filteredNonFKDimensions = this.dimensions().filter(dimensionFilter);
// .filter(d => !dimensionIsFKReference(d));
for (const dimension of filteredNonFKDimensions) {
dimensionOptions.count++;
dimensionOptions.dimensions.push(dimension);
......
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