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

Commit

Permalink
Merge branch 'master' into fix-158
Browse files Browse the repository at this point in the history
  • Loading branch information
leonardosfl authored Aug 9, 2020
2 parents 79ae729 + 61d83f5 commit 15e0625
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/components/dashboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export default function Dashboard() {
const params = new URLSearchParams(location.search);

useEffect(() => {
if (location.search === "") {
if (!params.get('q')) {
history.replace({ search: createPreprintQs({ text: covidTerms }, location.search), state: location.state });
}
}, [apiQs]);
Expand Down Expand Up @@ -260,7 +260,7 @@ export default function Dashboard() {
onChange={e => {
const search = createPreprintQs(
{
text: covidTerms,
text: params.getAll('q'),
hasOthersRec: e.target.checked || null
},
location.search
Expand All @@ -287,7 +287,7 @@ export default function Dashboard() {
onChange={e => {
const search = createPreprintQs(
{
text: covidTerms,
text: params.getAll('q'),
hasPeerRec: e.target.checked || null
},
location.search
Expand All @@ -314,7 +314,7 @@ export default function Dashboard() {
onChange={e => {
const search = createPreprintQs(
{
text: covidTerms,
text: params.getAll('q'),
hasData: e.target.checked || null
},
location.search
Expand All @@ -341,7 +341,7 @@ export default function Dashboard() {
onChange={e => {
const search = createPreprintQs(
{
text: covidTerms,
text: params.getAll('q'),
hasCode: e.target.checked || null
},
location.search
Expand Down Expand Up @@ -369,7 +369,7 @@ export default function Dashboard() {
) => {
const search = createPreprintQs(
{
text: covidTerms,
text: params.getAll('q'),
sort: nextSortOption
},
location.search
Expand Down

0 comments on commit 15e0625

Please sign in to comment.