Skip to content

Commit

Permalink
Fix rendering error in alignments tracks when filtering by tag in CRA…
Browse files Browse the repository at this point in the history
…M file (#3703)
  • Loading branch information
Lilas-w committed May 12, 2023
1 parent 9ff8719 commit 96db6a4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions plugins/alignments/src/CramAdapter/CramAdapter.ts
Expand Up @@ -253,8 +253,7 @@ export default class CramAdapter extends BaseFeatureDataAdapter {

if (tagFilter) {
filtered = filtered.filter(record => {
// @ts-expect-error
const val = record[tagFilter.tag]
const val = record.tags[tagFilter.tag]
return val === '*' ? val !== undefined : `${val}` === tagFilter.value
})
}
Expand Down

0 comments on commit 96db6a4

Please sign in to comment.