phenopolis / phenopolis_genomics_browser

Python API and React frontend for the Phenopolis Genomics Browser
https://dev-live.phenopolis.org
MIT License
31 stars 2 forks source link

TypeError: filter.value.toUpperCase is not a function #259

Closed IsmailM closed 3 years ago

IsmailM commented 3 years ago

Migrated from https://github.com/phenopolis/phenopolis_frontend_react/issues/265 Originally created by @alanwilter on Mon, 09 Nov 2020 20:11:02 GMT


I search for a variant, then select tab Genotypes. Then I add a filter to select Individuals. When try to select substring, I got a page with this error:

src/components/Table/VirtualGrid.js:776
  773 |   (item[filter.column.key][0] !== null)
  774 | ) {
  775 |   let displays = item[filter.column.key].filter((chip) => {
> 776 |     return RegExp(
      | ^  777 |       filter.value.toUpperCase().replace(/[-/\\^$*+?.()|[\]{}]/g, '\\$&')
  778 |     ).test(chip.display.toUpperCase());
  779 |   });
IsmailM commented 3 years ago

Migrated from https://github.com/phenopolis/phenopolis_frontend_react/issues/265#issuecomment-724320152 Originally created by @alanwilter on Mon, 09 Nov 2020 22:37:03 GMT


The one in the example search page starting with 14-...

On Mon 9 Nov 2020 at 21:22, Yuan Tian notifications@github.com wrote:

Do you know which variant you were looking? It's OK if you can't find it, but better if it's a specific case.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/phenopolis/phenopolis_frontend_react/issues/265#issuecomment-724256588, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA5YDSVZ3JYPIYG3IPL4TKLSPBFQXANCNFSM4TPZSOEA .

-- Sent from iPhone

IsmailM commented 3 years ago

Migrated from https://github.com/phenopolis/phenopolis_frontend_react/issues/265#issuecomment-724256588 Originally created by @YuanTian1991 on Mon, 09 Nov 2020 20:22:20 GMT


Do you know which variant you were looking? It's OK if you can't find it, but better if it's a specific case.