Skip to content
Snippets Groups Projects
Unverified Commit 03cba0e9 authored by Sameer Al-Sakran's avatar Sameer Al-Sakran Committed by GitHub
Browse files

Merge pull request #6740 from metabase/fix-6229

Fix issue with active sort not being displayed (#6229)
parents de73a44e 99e7e184
No related branches found
No related tags found
No related merge requests found
......@@ -273,7 +273,8 @@ export default class TableInteractive extends Component {
const isSortable = isClickable && column.source;
const isRightAligned = isColumnRightAligned(column);
const isSorted = sort && sort[0] && sort[0][0] === column.id;
// the column id is in `["field-id", fieldId]` format
const isSorted = sort && sort[0] && sort[0][0] && sort[0][0][1] === column.id;
const isAscending = sort && sort[0] && sort[0][1] === "ascending";
return (
......
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