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

Check if dimensionForColumn is function (#25511)

parent 2712f4fe
No related branches found
No related tags found
No related merge requests found
......@@ -91,7 +91,9 @@ export function getTableHeaderClickedObject(
} else {
return {
column,
dimension: query?.dimensionForColumn(column),
dimension:
typeof query?.dimensionForColumn === "function" &&
query?.dimensionForColumn(column),
};
}
}
......
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