From 0ceb0daddc430f681495cf93b72f77af8763d8f3 Mon Sep 17 00:00:00 2001 From: Vaclav Lunak Date: Sat, 20 Jan 2024 13:53:05 +0100 Subject: [PATCH] correctly find labels for secondary sort --- src/components/CompareView.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/CompareView.js b/src/components/CompareView.js index b90f11664..f9d10b617 100644 --- a/src/components/CompareView.js +++ b/src/components/CompareView.js @@ -174,7 +174,7 @@ const CompareView = ({ cards, both, onlyA, onlyB }) => { - {getLabels(column, sortSecondary, cube.showUnsorted) + {getLabels(Object.values(column).flat(), sortSecondary, cube.showUnsorted) .filter((label) => column[label]) .map((label) => { const group = column[label];