Skip to content

Commit

Permalink
Merge pull request #2618 from aiidtest/fix-discover-counts
Browse files Browse the repository at this point in the history
Display largest count on classifications filter
  • Loading branch information
kepae authored Apr 10, 2024
2 parents 3af30a8 + bec06fe commit b8348cc
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ function Attribute({ name, refinement, searchResults }) {
tabIndex={0}
onClick={() => setCollapsed((c) => !c)}
>
{name} ({refinement.items.length}){' '}
{name} (~
{refinement.items.reduce((a, c) => Math.max(a, c.count), refinement.items[0].count)}){' '}
<div className="inline-block">{collapsed ? <>+</> : <>-</>} </div>
</div>

Expand Down

0 comments on commit b8348cc

Please sign in to comment.