Skip to content
This repository has been archived by the owner on Apr 29, 2022. It is now read-only.

Commit

Permalink
hard coded COVID-19 as a text query for API queries on the dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
harumhelmy committed Aug 3, 2020
1 parent ca0009c commit ddfb561
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/components/dashboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@ export default function Dashboard() {
onChange={e => {
const search = createPreprintQs(
{
text: 'COVID-19',
hasOthersRec: e.target.checked || null
},
location.search
Expand All @@ -215,6 +216,7 @@ export default function Dashboard() {
onChange={e => {
const search = createPreprintQs(
{
text: 'COVID-19',
hasPeerRec: e.target.checked || null
},
location.search
Expand All @@ -241,6 +243,7 @@ export default function Dashboard() {
onChange={e => {
const search = createPreprintQs(
{
text: 'COVID-19',
hasData: e.target.checked || null
},
location.search
Expand All @@ -267,6 +270,7 @@ export default function Dashboard() {
onChange={e => {
const search = createPreprintQs(
{
text: 'COVID-19',
hasCode: e.target.checked || null
},
location.search
Expand Down

1 comment on commit ddfb561

@leonardosfl
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@harumhelmy This introduced a problem. If you search something (use a custom query) and then select a filter, the query will be reset.

bug

Please sign in to comment.