Skip to content

Commit

Permalink
Merge pull request #175 from georgetown-cset/174-dont-display-metrics…
Browse files Browse the repository at this point in the history
…-when-no-counts

Filter out fields with no yearly counts from trends data
  • Loading branch information
jmelot authored Nov 7, 2023
2 parents 3ccf77d + c17b31f commit a1fcdae
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions web/gui-v2/src/components/DetailViewPatents.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ const DetailViewPatents = ({
.sort((a, b) => b.patents - a.patents);

const aiSubfieldOptions = patentSubkeys
.filter(k => !!data.patents[k]?.counts)
.map(k => ({ text: patentMap[k].replace(/ patents/i, ''), val: k }))
.sort((a, b) => a.text.localeCompare(b.text, 'en', { sensitivity: 'base' }));

Expand Down

0 comments on commit a1fcdae

Please sign in to comment.