Skip to content

Commit ee8b99c

Browse files
committed
Always show checkbox for selected field(s)
1 parent a5ff701 commit ee8b99c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/app/components/elements/layout/SidebarLayout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,7 @@ export const GenericConceptsSidebar = (props: GenericConceptsSidebarProps) => {
488488
/>
489489
{isSelected && <div className="ms-3 ps-2">
490490
{descendentTags
491-
.filter(tag => !isDefined(tagCounts) || tagCounts[tag.id] > 0)
491+
.filter(tag => !isDefined(tagCounts) || tagCounts[tag.id] > 0 || conceptFilters.includes(tag))
492492
// .sort((a, b) => tagCounts ? tagCounts[b.id] - tagCounts[a.id] : 0)
493493
.map((tag, j) => <FilterCheckbox key={j}
494494
checkboxStyle="button" color="theme" bsSize="sm" data-bs-theme={subject} tag={tag} conceptFilters={conceptFilters}

0 commit comments

Comments
 (0)