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

Use ternary in check (#25526)

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