Skip to content

Commit

Permalink
MET-3883 Fix search in RIGHTS filter
Browse files Browse the repository at this point in the history
  • Loading branch information
andyjmaclean committed Sep 16, 2021
1 parent aeb0768 commit aaff637
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/app/overview/overview.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -787,7 +787,9 @@ export class OverviewComponent extends DataPollingComponent implements OnInit {
const toDisplay = this.filterData[filterInfo.dimension]
.filter((nl: NameLabel) => {
if (filterInfo.term) {
return reg.exec(nl.label);
return filterInfo.dimension === DimensionName.rights
? reg.exec(this.renameRights.transform(nl.label))
: reg.exec(nl.label);
} else {
return true;
}
Expand Down

0 comments on commit aaff637

Please sign in to comment.